[ http://issues.apache.org/jira/browse/TUSCANY-645?page=all ]
Fuhwei Lwo updated TUSCANY-645:
-------------------------------
Attachment: SimpleDynamicDefaultNamespaceTestCase.java
quote-defns.xml
This test case, SimpleDynamicDefaultNamespaceTestCase.java, under
Tuscany\java\sdo\impl\src\test\java\org\apache\tuscany\sdo\test directory would
demonstrate the problem.
quote-defns.xml under Tuscany\java\sdo\impl\src\test\resources directory should
be the serialization format based on the quote-defns.xsd.
> NullPointerException thrown in XMLHelper.define() method was called with an
> XSD file without specifying a target namespace
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-645
> URL: http://issues.apache.org/jira/browse/TUSCANY-645
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Reporter: Fuhwei Lwo
> Attachments: quote-defns.xml, quote-defns.xml,
> SimpleDynamicDefaultNamespaceTestCase.java
>
>
> I took the simple.xsd and modified the file without using the specific target
> namespace like below. A NullPointerException will be thrown.
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <xsd:element name="stockQuote" type="Quote"/>
> <xsd:complexType name="Quote">
> <xsd:sequence>
> <xsd:element name="symbol" type="xsd:string"/>
> <xsd:element name="companyName" type="xsd:string"/>
> <xsd:element name="price" type="xsd:decimal"/>
> <xsd:element name="open1" type="xsd:decimal"/>
> <xsd:element name="high" type="xsd:decimal"/>
> <xsd:element name="low" type="xsd:decimal"/>
> <xsd:element name="volume" type="xsd:double"/>
> <xsd:element name="change1" type="xsd:double"/>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="quotes"
> type="Quote"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd: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]