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 "Dennis Sosnoski (JIRA)" <ji...@apache.org> on 2009/09/04 09:48:57 UTC
[jira] Created: (AXIS2-4487) JAXB code generation fails with
multiple schemas in WSDL
JAXB code generation fails with multiple schemas in WSDL
--------------------------------------------------------
Key: AXIS2-4487
URL: https://issues.apache.org/jira/browse/AXIS2-4487
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: databinding
Affects Versions: 1.5
Reporter: Dennis Sosnoski
Attachments: library.wsdl, library.wsdl, types.xsd
JAXB code generation fails with NPE when multiple schemas are present in the WSDL (with one imported into another):
[java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
[java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
[java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
[java] ... 2 more
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
[java] ... 3 more
[java] Caused by: java.lang.RuntimeException: java.lang.NullPointerException
[java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:317)
[java] ... 8 more
[java] Caused by: java.lang.NullPointerException
[java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:246)
[java] ... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AXIS2-4487) JAXB code generation fails with
multiple schemas in WSDL
Posted by "Dennis Sosnoski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Sosnoski updated AXIS2-4487:
-----------------------------------
Attachment: library.wsdl
WSDL causing NPE.
> JAXB code generation fails with multiple schemas in WSDL
> --------------------------------------------------------
>
> Key: AXIS2-4487
> URL: https://issues.apache.org/jira/browse/AXIS2-4487
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.5
> Reporter: Dennis Sosnoski
> Attachments: library.wsdl, library.wsdl, types.xsd
>
>
> JAXB code generation fails with NPE when multiple schemas are present in the WSDL (with one imported into another):
> [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
> [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> [java] ... 2 more
> [java] Caused by: java.lang.reflect.InvocationTargetException
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
> [java] ... 3 more
> [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:317)
> [java] ... 8 more
> [java] Caused by: java.lang.NullPointerException
> [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:246)
> [java] ... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AXIS2-4487) JAXB code generation fails with
multiple schemas in WSDL
Posted by "Dennis Sosnoski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Sosnoski updated AXIS2-4487:
-----------------------------------
Attachment: types.xsd
library.wsdl
WSDL with imported schema in a separate file, which works correctly.
> JAXB code generation fails with multiple schemas in WSDL
> --------------------------------------------------------
>
> Key: AXIS2-4487
> URL: https://issues.apache.org/jira/browse/AXIS2-4487
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.5
> Reporter: Dennis Sosnoski
> Attachments: library.wsdl, library.wsdl, types.xsd
>
>
> JAXB code generation fails with NPE when multiple schemas are present in the WSDL (with one imported into another):
> [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
> [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> [java] ... 2 more
> [java] Caused by: java.lang.reflect.InvocationTargetException
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
> [java] ... 3 more
> [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:317)
> [java] ... 8 more
> [java] Caused by: java.lang.NullPointerException
> [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:246)
> [java] ... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.