NPE during wsdl2java
--------------------
Key: AXIS2-4918
URL: https://issues.apache.org/jira/browse/AXIS2-4918
Project: Axis2
Issue Type: Bug
Components: adb
Affects Versions: 1.5.4
Environment: linux and windows
Reporter: Hai Shao
Priority: Critical
Running wsdl2java as:
sh $AXIS2_HOME/bin/wsdl2java.sh -uri <wsdl file path> -s -or -uw
and got NPE
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
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:224)
... 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: java.lang.NullPointerException
at
org.apache.axis2.schema.ExtensionUtility.populateClassName(ExtensionUtility.java:521)
at
org.apache.axis2.schema.ExtensionUtility.processSchemaSequence(ExtensionUtility.java:468)
at
org.apache.axis2.schema.ExtensionUtility.processXMLSchemaComplexType(ExtensionUtility.java:349)
at
org.apache.axis2.schema.ExtensionUtility.walkSchema(ExtensionUtility.java:321)
at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:168)
... 8 more
wsdl file was validated.
--
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: [email protected]
For additional commands, e-mail: [email protected]