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 Jason Chodakowski <ja...@hyperworx.com> on 2006/02/05 14:25:03 UTC

NPE while using WSDL2Java

I got the following null pointer while trying to build the web service for
the Amazon Merchant WS. 

Any help/thoughts would be greatly appreciated.

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPointerException
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn
gine.java:118)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPointerException
        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExt
ension.java:152)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn
gine.java:80)
        ... 2 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPointerException
        at
org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:167)
        at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaC
ompiler.java:443)
        at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:350
)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:28
9)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:26
7)
        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:179)
        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:141)
        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExt
ension.java:104)
        ... 3 more
Caused by: java.lang.NullPointerException
        at
org.apache.axis2.schema.writer.JavaBeanWriter.getBeanElement(JavaBeanWriter.
java:357)
        at
org.apache.axis2.schema.writer.JavaBeanWriter.process(JavaBeanWriter.java:27
0)
        at
org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:162)
        ... 10 more

Re: NPE while using WSDL2Java

Posted by Davanum Srinivas <da...@gmail.com>.
We need the wsdl, could you please create a new bug report and upload the wsdl?

thanks,
dims

On 2/5/06, Jason Chodakowski <ja...@hyperworx.com> wrote:
>
>
> I got the following null pointer while trying to build the web service for
> the Amazon Merchant WS.
>
> Any help/thoughts would be greatly appreciated.
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException:
> org.apache.axis2.schema.SchemaCompilationException:
> java.lang.NullPointerException
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118)
>
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
>
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
> Caused by: java.lang.RuntimeException:
> org.apache.axis2.schema.SchemaCompilationException:
> java.lang.NullPointerException
>
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:152)
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:80)
>
>         ... 2 more
>
> Caused by:
> org.apache.axis2.schema.SchemaCompilationException:
> java.lang.NullPointerException
>
>         at
> org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:167)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:443)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:350)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:289)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:267)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:179)
>
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:141)
>
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:104)
>
>         ... 3 more
>
> Caused by: java.lang.NullPointerException
>
>         at
> org.apache.axis2.schema.writer.JavaBeanWriter.getBeanElement(JavaBeanWriter.java:357)
>
>         at
> org.apache.axis2.schema.writer.JavaBeanWriter.process(JavaBeanWriter.java:270)
>
>         at
> org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:162)
>
>         ... 10 more


--
Davanum Srinivas : http://wso2.com/blogs/