You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Martin Voelkle (JIRA)" <ji...@apache.org> on 2007/05/30 16:59:16 UTC
[jira] Created: (AXIS2C-609) NullPointerException generating WSDL
with anonymous simple types
NullPointerException generating WSDL with anonymous simple types
----------------------------------------------------------------
Key: AXIS2C-609
URL: https://issues.apache.org/jira/browse/AXIS2C-609
Project: Axis2-C
Issue Type: Bug
Components: wsdl2c tool
Affects Versions: 1.0.0
Reporter: Martin Voelkle
I am having the same issue as in AXIS2-1867, using the same test case with today's nightly build (2007-05-30), but getting a different stack trace:
>wsdl2c.bat -uri test.wsdl -d adb -u
Using AXIS2_HOME: S:\Java-Tools\Apache\axis2-2007-05-30
Using JAVA_HOME: C:\Program Files\Java\jre1.6.0_01
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:256)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:237)
at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:955)
at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2446)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:876)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:857)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:75)
... 8 more
Caused by: java.lang.NullPointerException
at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:293)
at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:232)
... 30 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-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Resolved: (AXIS2C-609) NullPointerException generating WSDL
with anonymous simple types
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe resolved AXIS2C-609.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.0
This issue seems to have been fixed in the latest Axis2/Java trunk. I testd with the given WSDL and it does not trow an exception now and the code is generated.
> NullPointerException generating WSDL with anonymous simple types
> ----------------------------------------------------------------
>
> Key: AXIS2C-609
> URL: https://issues.apache.org/jira/browse/AXIS2C-609
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Affects Versions: 1.0.0
> Reporter: Martin Voelkle
> Fix For: 1.1.0
>
> Attachments: test.wsdl
>
>
> I am having the same issue as in AXIS2-1867, using the same test case with today's nightly build (2007-05-30), but getting a different stack trace:
> >wsdl2c.bat -uri test.wsdl -d adb -u
> Using AXIS2_HOME: S:\Java-Tools\Apache\axis2-2007-05-30
> Using JAVA_HOME: C:\Program Files\Java\jre1.6.0_01
> 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:256)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:237)
> at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:955)
> at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2446)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:876)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:857)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:75)
> ... 8 more
> Caused by: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:293)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:232)
> ... 30 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-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-609) NullPointerException generating WSDL
with anonymous simple types
Posted by "Martin Voelkle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Voelkle updated AXIS2C-609:
----------------------------------
Attachment: test.wsdl
>From AXIS2-1867
> NullPointerException generating WSDL with anonymous simple types
> ----------------------------------------------------------------
>
> Key: AXIS2C-609
> URL: https://issues.apache.org/jira/browse/AXIS2C-609
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Affects Versions: 1.0.0
> Reporter: Martin Voelkle
> Attachments: test.wsdl
>
>
> I am having the same issue as in AXIS2-1867, using the same test case with today's nightly build (2007-05-30), but getting a different stack trace:
> >wsdl2c.bat -uri test.wsdl -d adb -u
> Using AXIS2_HOME: S:\Java-Tools\Apache\axis2-2007-05-30
> Using JAVA_HOME: C:\Program Files\Java\jre1.6.0_01
> 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:256)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:237)
> at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:955)
> at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2446)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:876)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:857)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:75)
> ... 8 more
> Caused by: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:293)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:232)
> ... 30 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-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-609) NullPointerException generating WSDL
with anonymous simple types
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503272 ]
Samisa Abeysinghe commented on AXIS2C-609:
------------------------------------------
Is it possible for you to attach the WSDL here please?
> NullPointerException generating WSDL with anonymous simple types
> ----------------------------------------------------------------
>
> Key: AXIS2C-609
> URL: https://issues.apache.org/jira/browse/AXIS2C-609
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Affects Versions: 1.0.0
> Reporter: Martin Voelkle
>
> I am having the same issue as in AXIS2-1867, using the same test case with today's nightly build (2007-05-30), but getting a different stack trace:
> >wsdl2c.bat -uri test.wsdl -d adb -u
> Using AXIS2_HOME: S:\Java-Tools\Apache\axis2-2007-05-30
> Using JAVA_HOME: C:\Program Files\Java\jre1.6.0_01
> 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:256)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:237)
> at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:955)
> at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2446)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:876)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:857)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:75)
> ... 8 more
> Caused by: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:293)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:232)
> ... 30 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-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org