You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org> on 2006/08/30 19:16:36 UTC

[jira] Updated: (TUSCANY-676) ImportSDOLoader: DataTypeImpl not found in XSDEcoreBuilder.typeToTypeObjectMap causes NPE (surfaced as IllegalArgumentException)

     [ http://issues.apache.org/jira/browse/TUSCANY-676?page=all ]

Fuhwei Lwo updated TUSCANY-676:
-------------------------------

    Attachment: tuscany-676.patch
                MedRecWebServices.wsdl

Hi Chris,

Can you apply the patch and rebuild sdo/impl and test with the new wsdl file I attached?  Your original wsdl file is not valid because you are trying to reference type from different namespace.  I have added <ws:import> and verified the wsdl file is valid.

Please let me know if this solves your null pointer exception.  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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org