You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2005/09/13 16:29:54 UTC

[jira] Created: (AXIS2-216) NPE in code generation

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


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


[jira] Resolved: (AXIS2-216) NPE in code generation

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-216?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-216:
-------------------------------------------

    Resolution: Fixed

Fixed. It was actually a bug in the code generator that arose due to a missing service. Now the particular WSDL is added as one of the test WSDL's

> 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


[jira] Updated: (AXIS2-216) NPE in code generation

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
     [ 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