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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/28 08:30:05 UTC

[jira] Resolved: (AXIS2-1552) Error parsing WSDL (Unsupported content Simple Type Union)

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

Amila Chinthaka Suriarachchi resolved AXIS2-1552.
-------------------------------------------------

    Resolution: Fixed

now this wsdl works fine.

> Error parsing WSDL (Unsupported content Simple Type Union)
> ----------------------------------------------------------
>
>                 Key: AXIS2-1552
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1552
>             Project: 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
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: CompositePickList.zip, CompositeProductionOrder.zip
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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