Title: 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(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

Reply via email to