Error parsing WSDL
------------------
Key: AXIS2-1552
URL: http://issues.apache.org/jira/browse/AXIS2-1552
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: wsdl
Affects Versions: 1.0
Environment: Windows XP, jdk1.5.0_04, Axis2 1.0
Reporter: Marko Huttunen
Hi!
I am working with two wsdl and trying to generate client side classes.
WSDL2Java can process the other wsdl and its schemas fine, but not the other.
It always ends up with an exception:
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: java.lang.NullPointerException; nested
exception is:
java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
... 2 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1916)
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1929)
at
org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1752)
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:121)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)
... 3 more
Caused by: java.lang.NullPointerException
at
org.apache.ws.commons.schema.SchemaBuilder.handleSimpleType(SchemaBuilder.java:343)
at
org.apache.ws.commons.schema.SchemaBuilder.handleSimpleType(SchemaBuilder.java:477)
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:104)
at
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:53)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:255)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:217)
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1911)
... 10 more
The log file doesn't provide any more details than this:
[org.apache.axis2.wsdl.i18n.resource::handleGetObject(engine.wsdlParsingException)]
What is wrong with the other wsdl?
Br,
Marko Huttunen
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]