Hi,

When I try to use jibx2wsdl with the following simple class hierarchy, it fails 
with a NullPointerException. I've tried it with both the latest "official" 
jibx2wsdl version and with the cvs-version. Both show the same result. I'm not 
using any customizations with jibx2wsdl.

Here's the class hierarchy:

public class Base
{
        public String baseField;
}

public class Derived1 extends Base
{
        public String derivedField;
}

public class Derived2 extends Base
{
        public String derivedField;
}

public class Combined
{
         public Derived1 derived1;
         public Derived2 derived2;
}

public class WebService
{
         public Combined get()
         {
                return new Combined();
        }
}

And here's the stack trace from jibx2wsdl:

Exception in thread "main" java.lang.NullPointerException
    at java.util.HashMap.putAll(HashMap.java:498)
    at
    
org.jibx.binding.generator.BindingGenerator.fillStructure(BindingGenerator.java:537)
    at
    
org.jibx.binding.generator.BindingGenerator.fillStructure(BindingGenerator.java:578)
    at
    
org.jibx.binding.generator.BindingGenerator.addMemberBindings(BindingGenerator.java:499)
    at
    
org.jibx.binding.generator.BindingGenerator.addMapping(BindingGenerator.java:734)
    at
    
org.jibx.binding.generator.BindingGenerator.generateMappings(BindingGenerator.java:1065)
    at
    
org.jibx.binding.generator.BindingGenerator.generateSpecified(BindingGenerator.java:1150)
    at org.jibx.ws.wsdl.Jibx2Wsdl.generate(Jibx2Wsdl.java:484)
    at org.jibx.ws.wsdl.Jibx2Wsdl.main(Jibx2Wsdl.java:588)

Is this a known problem/limitation of jibx2wdsl, or just an ordinary bug? 
: -)

Cheers,
Jochem Wichers Hoeth

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to