[ http://issues.apache.org/jira/browse/TUSCANY-676?page=comments#action_12431744 ] Fuhwei Lwo commented on TUSCANY-676: ------------------------------------
Hi Frank B., Please review and consider committing the attached tuscany-676.patch. It seems to fix Chris' NPE. Thanks. Fuhwei Lwo > ImportSDOLoader: DataTypeImpl not found in > XSDEcoreBuilder.typeToTypeObjectMap causes NPE (surfaced as > IllegalArgumentException) > -------------------------------------------------------------------------------------------------------------------------------- > > Key: TUSCANY-676 > URL: http://issues.apache.org/jira/browse/TUSCANY-676 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Reporter: Chris Wall > Attachments: medrec.zip, MedRecWebServices.wsdl, tuscany-676.patch, > xsdecorebuilder_npe.zip > > > During SDO import of WSDL, elements of the following complex type are not > found when validated against available SDO datatypes within the XSD layer > (XSDEcoreBuilder). Downstream this causes an NPE. It could be that the > comparison between the type and the key is not properly implemented. See the > attached zip containing debug screenshots. > <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" > targetNamespace="java:com.bea.proto.webservice" xmlns:xs=" > http://www.w3.org/2001/XMLSchema"> > <xs:complexType name="Patient"> > <xs:sequence> > <xs:element minOccurs="1" name="Id" nillable="true" type="xs:int"/> > <xs:element minOccurs="1" name="Dob" nillable="true" > type="xs:dateTime"/> > <xs:element minOccurs="1" name="FirstName" nillable="true" > type="xs:string"/> > <xs:element minOccurs="1" name="Gender" nillable="true" > type="xs:string"/> > <xs:element minOccurs="1" name="LastName" nillable="true" > type="xs:string"/> > <xs:element minOccurs="1" name="MiddleName" nillable="true" > type="xs:string"/> > <xs:element minOccurs="1" name="Phone" nillable="true" > type="xs:string"/> > <xs:element minOccurs="1" name="Ssn" nillable="true" type="xs:string"/> > </xs:sequence> > </xs:complexType> > </xs:schema> -- 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]