axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-216) NPE in code generation
Date Tue, 13 Sep 2005 15:30:55 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-216?page=all ]

Steve Loughran updated AXIS2-216:
---------------------------------

    Attachment: deployapi.wsdl

This snippet of the WSDL exhibits the problem. Feel free to use it in the test suite, or point
out the fundamental errors in my XSD/WSDL which will make the problem go away...

> NPE in code generation
> ----------------------
>
>          Key: AXIS2-216
>          URL: http://issues.apache.org/jira/browse/AXIS2-216
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Versions: 0.91
>  Environment: Suse 9.3, Java.15.01, HT CPU
>     Reporter: Steve Loughran
>  Attachments: deployapi.wsdl
>
> When attempting to generate the WSDL for my cddlm deployment API (check out from http://sourceforge.net/projects/deployment
), 
> I get an NPE:-
> [core:java] org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:139)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeleton(MultiLanguageClientEmitter.java:405)
> [core:java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:103)
> [core:java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:29)
> [core:java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:23)
> [core:java] Caused by: java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.createDOMDocumentForInterfaceImplementation(MultiLanguageClientEmitter.java:914)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writeInterfaceImplementation(MultiLanguageClientEmitter.java:301)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:126)
> [core:java]     ... 4 more
> [core:java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:107)
> [core:java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:29)
> [core:java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:23)
> [core:java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeleton(MultiLanguageClientEmitter.java:409)
> [core:java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:103)
> [core:java]     ... 2 more
> [core:java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:139)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeleton(MultiLanguageClientEmitter.java:405)
> [core:java]     ... 3 more
> [core:java] Caused by: java.lang.NullPointerException
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.createDOMDocumentForInterfaceImplementation(MultiLanguageClientEmitter.java:914)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writeInterfaceImplementation(MultiLanguageClientEmitter.java:301)
> [core:java]     at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:126)
> [core:java]     ... 4 more
>  
> BUILD FAILED - at 13/09/05 15:12
> /home/slo/Projects/SmartFrog/Forge/core/components/deployapi/build.xml:372: Java returned:
1
> Params to wsdl2java are 
>     <core:java
>       classname="org.apache.axis2.wsdl.WSDL2Java"
>       classpathref="compile.classpath">
>         <arg value="-o" />
>         <arg file="${build.axis2.src.dir}" />
>         <arg value="-p" />
>         <arg value="org.ggf.cddlm.generated.axis2" />
>         <arg value="-ss" />
>         <arg value="-sd" />
>         <arg value="-uri" />
>         <arg file="${deployment-api.wsdl}" />
>     </core:java>
> where deployment-api.wsdl is xml/cddlm/deployment-api.wsdl, a doc that imports all the
WSRF stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message