[ http://issues.apache.org/jira/browse/AXIS2-1026?page=all ]
Davanum Srinivas resolved AXIS2-1026. ------------------------------------- Resolution: Fixed Since i can see schema validation errors with other wsdl processors as well. marking this item as Invalid (underlying NPE is already fixed) C:\axis2>wsdl territory.wsdl Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryInsertOrUpdate_Input' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryInsertOrUpdate_Output' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryInsert_Input' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryInsert_Output' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryQueryPage_Input' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryQueryPage_Output' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryUpdate_Input' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryUpdate_Output' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryDelete_Input' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Schema validation warning: Schema item 'element' named 'TerritoryWS_TerritoryDelete_Output' from namespace 'urn:crmondemand/ws/territory/10/2004' is invalid. Namespace 'urn:/crmondemand/xml/territory' is not available to be referenced in this schema. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Writing file 'C:\axis2\Territory.cs'. > WSDL2JAVA throws NullPointerException during generating client proxy classes. > ----------------------------------------------------------------------------- > > Key: AXIS2-1026 > URL: http://issues.apache.org/jira/browse/AXIS2-1026 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: wsdl > Affects Versions: 1.0 > Environment: Windows XP SP2, JDK 1.4/1.5 > Reporter: Yura Tkachenko > Attachments: territory.wsdl, time.wsdl > > > for Siebel CRM Ondemand Service wsdl I'm always getting exception: > > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException > : java.lang.RuntimeException: > org.apache.axis2.schema.SchemaCompilationException > : java.lang.NullPointerException > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:185) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java :21) > Caused by: java.lang.RuntimeException: > org.apache.axis2.schema.SchemaCompilation > Exception: java.lang.NullPointerException > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp > leDBExtension.java:117) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:140) > ... 2 more > Caused by: org.apache.axis2.schema.SchemaCompilationException: > java.lang.NullPoi > nterException > at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18 > 6) > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp > leDBExtension.java :70) > ... 3 more > Caused by: java.lang.NullPointerException > at > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. > java:360) > at org.apache.axis2.schema.SchemaCompiler.processElement > (SchemaCompiler. > java:344) > at > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. > java:410) > at > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. > java:334) > at > org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91 > 5) > at > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler > .java:878) > at org.apache.axis2.schema.SchemaCompiler.processComplexType > (SchemaCompi > ler.java:643) > at > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT > ype(SchemaCompiler.java:594) > at > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j > ava:579) > at > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. > java:366) > at > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. > java:344) > at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:22 > 6) > at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18 > 1) > ... 4 more > > Don't know what does it means, but for Axis 1.3 I'm used also > NstoPkg.properties file to generate stubs. Axis2 doesn't used this file or I > missed some parameter, here is my command line: > > WSDL2JAVA.bat -uri account.wsdl > > Let me know if you need some additional info. > Aditional post from Derek: > "WSDL2Java should never throw a NullPointerException. If it is sent invalid > data, it should always throw an exception containing an informative error > message instead. Please file a JIRA so that this issue is fixed." > I've attached 2 wsdls: > 1) Time.wsdl for this wsdl I can generate stubs > 2) Territory.wsdl I wasn't be able to do this. I suppose it's because Axis2 > doesn't understand this notation in wsdl: > <xsd:complexType name="Territory"><xsd:sequence><xsd:element > name="TerritoryId" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string30"></xsd:element> > <xsd:element name="CreatedDate" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="CreatedById" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="CreatedBy" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="CurrencyCode" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string20"></xsd:element> > <xsd:element name="Description" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string255"></xsd:element> > <xsd:element name="ModifiedDate" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="ModifiedById" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="ModifiedBy" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="TerritoryName" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string50"></xsd:element> > <xsd:element name="ParentTerritoryId" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="ParentTerritoryName" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string50"></xsd:element> > <xsd:element name="CurrentQuota" maxOccurs="1" minOccurs="0" > type="xsd:string"></xsd:element> > <xsd:element name="TerritoryIntegrationId" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string30"></xsd:element> > <xsd:element name="TerritoryExternalSystemId" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string30"></xsd:element> > <xsd:element name="ParentTerritoryIntegrationId" maxOccurs="1" minOccurs="0" > type="xsdLocal1:string30"></xsd:element> > <xsd:element name="ParentTerritoryExternalSystemId" maxOccurs="1" > minOccurs="0" type="xsdLocal1:string30"></xsd:element> > </xsd:sequence> > </xsd:complexType> > <xsd:simpleType name="string50"><xsd:restriction > base="xsd:string"><xsd:maxLength value="50"></xsd:maxLength> > </xsd:restriction> > </xsd:simpleType> > <xsd:simpleType name="string255"><xsd:restriction > base="xsd:string"><xsd:maxLength value="255"></xsd:maxLength> > </xsd:restriction> > </xsd:simpleType> > <xsd:simpleType name="string30"><xsd:restriction > base="xsd:string"><xsd:maxLength value="30"></xsd:maxLength> > </xsd:restriction> > </xsd:simpleType> > <xsd:simpleType name="string20"><xsd:restriction > base="xsd:string"><xsd:maxLength value="20"></xsd:maxLength> > </xsd:restriction> > </xsd:simpleType> -- 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]