Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-676

ImportSDOLoader: DataTypeImpl not found in XSDEcoreBuilder.typeToTypeObjectMap causes NPE (surfaced as IllegalArgumentException)

    XMLWordPrintableJSON

Details

    Description

      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>

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--medrec.zip
          37 kB
          Chris Wall
        2. ASF.LICENSE.NOT.GRANTED--xsdecorebuilder_npe.zip
          226 kB
          Chris Wall
        3. MedRecWebServices.wsdl
          4 kB
          Fuhwei Lwo
        4. tuscany-676.patch
          0.8 kB
          Fuhwei Lwo

        Activity

          People

            Unassigned Unassigned
            cwall Chris Wall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: