[
http://issues.apache.org/jira/browse/TUSCANY-645?page=comments#action_12429091
]
Fuhwei Lwo commented on TUSCANY-645:
------------------------------------
Yang, here is what you asked for.
java.lang.NullPointerException
at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java:614)
at org.eclipse.emf.common.util.URI.createURI(URI.java:494)
at
org.apache.tuscany.sdo.helper.SDOXSDEcoreBuilder.getDefaultPackageName(SDOXSDEcoreBuilder.java:389)
at
org.apache.tuscany.sdo.helper.SDOXSDEcoreBuilder.getEcoreAttribute(SDOXSDEcoreBuilder.java:212)
at
org.eclipse.xsd.ecore.XSDEcoreBuilder.generate(XSDEcoreBuilder.java:2613)
at
org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:189)
at
org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:169)
at
org.apache.tuscany.sdo.test.SimpleDynamicTestCase.setUp(SimpleDynamicTestCase.java:76)
> 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, tuscany-645.patch
>
>
> 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]