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 "Andreas Veithen (JIRA)" <ji...@apache.org> on 2017/05/01 21:30:04 UTC

[jira] [Resolved] (AXIS2-4918) NPE during wsdl2java

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

Andreas Veithen resolved AXIS2-4918.
------------------------------------
    Resolution: Incomplete

> 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
>            Assignee: Shameera Rathnayaka
>            Priority: Critical
>         Attachments: AXIS2-4918.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

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