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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/04/04 13:17:24 UTC

[jira] Resolved: (AXIS2-3700) WSDL2Java tool fails with NullPointerException

     [ https://issues.apache.org/jira/browse/AXIS2-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-3700.
--------------------------------------

    Resolution: Fixed

seems like issue is fixed

> WSDL2Java tool fails with NullPointerException
> ----------------------------------------------
>
>                 Key: AXIS2-3700
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3700
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.3
>         Environment: Windows XP 
>            Reporter: Raj
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AddressSchema.xsd, BasicElements.xsd, CustomerSchema.xsd, InvoiceSchema.xsd, OrderEntryDocWSDL.wsdl, OrderSchema.xsd
>
>
> I have created a WSDL (DOC Liternal webservice) and try to generate java code based on the WSDL. The tool wsdl2java is failing with NullPointerException. I have validated the WSDL and it is valid.
> I will be more than happy to send the Schemas and WSDL if needed. I am not sure how I can upload it. I appreciate your help in this regard.
> Thanks
> Raj
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: ja
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
>         ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
>         ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:221)
>         at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80)
>         ... 8 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.schema.SchemaCompiler.resolveParentSchema(SchemaCompiler.java:729)
>         at org.apache.axis2.schema.SchemaCompiler.getType(SchemaCompiler.java:2301)
>         at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompiler.java:2526)
>         at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2475)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:871)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:518)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:478)
>         at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1899)
>         at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1788)
>         at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:977)
>         at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:914)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:865)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:518)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:302)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:288)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:288)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:212)
>         ... 9 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org