[
https://issues.apache.org/jira/browse/AXIS2C-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Samisa Abeysinghe resolved AXIS2C-643.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.0
Resolved in latest svn. Amila has commited the change.
The WSDL atached is also wrong
<simpleType>
<sequence>
<!-- <element maxOccurs="unbounded" name="testReturn"
type="xsd::string"/> -->
<any maxOccurs="unbounded" minOccurs="0"
namespace="##any" processContents="lax"/>
</sequence>
</simpleType>
There can not be sequence inside simpleType, it should be a complexType
> WSDL2C does not support <any> elements, causes
> java.lang.reflect.InvocationTargetException
> ------------------------------------------------------------------------------------------
>
> Key: AXIS2C-643
> URL: https://issues.apache.org/jira/browse/AXIS2C-643
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Environment: Nightly build (17th July '07), Windows XP
> Reporter: Jamie Lyon
> Fix For: 1.1.0
>
> Attachments: example.wsdl
>
>
> When there is an any element:
> <any maxOccurs="unbounded" minOccurs="0" namespace="##any"
> processContents="lax"/>
> within a type, the following exception is thrown:
> C:\axis2-bin\bin>wsdl2c -d adb -u -uri example.wsdl
> Using AXIS2_HOME: c:\axis2-bin
> Using JAVA_HOME: C:\Program Files\Java\jdk1.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:265)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> 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.writer.CStructWriter.write(CStructWriter.java:243)
> at
> org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:965)
> at
> org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2492)
> 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:489)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:302)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:212)
> at
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80)
> ... 8 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:298)
> at
> org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:238)
> ... 16 more
> This happens both with and without "-d adb -u".
--
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]