You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bruno Negrao <bn...@gmail.com> on 2006/07/08 18:21:05 UTC

WSDL2Java in Axis2 is not working?

Hi Guys,

I'm a newbie and I'm trying to generate java code for the example wsdl
attached to this email. I'm using the wsdl2java from the
axis2-std-SNAPSHOT-bin.zip package.
After execution I receive the following errors:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:123)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: null; nested exception is:
    java.lang.NullPointerException
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:210)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:114)
    ... 2 more
Caused by: java.lang.NullPointerException
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortType(WSDL11ToAxisServiceBuilder.java:392)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:310)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:205)
    ... 3 more


Is this a bug in wsdl2java

Thank you,
bruno.