[ http://issues.apache.org/jira/browse/TUSCANY-27?page=comments#action_12366518 ]
Frank Budinsky commented on TUSCANY-27: --------------------------------------- Fuhwei, Your example works for me. I can create an instance of OpenQuote by calling DataFactory.INSTANCE.create(null, "OpenQuote"); There must be more to your scenario. Can you please provide a JUnit that illustrates the problem you're seeing. Thanks, Frank. > "No targetNamespace" in XSD is not fully functional yet > ------------------------------------------------------- > > Key: TUSCANY-27 > URL: http://issues.apache.org/jira/browse/TUSCANY-27 > Project: Tuscany > Type: Bug > Components: Java SDO Implementation > Environment: All platforms > Reporter: Fuhwei Lwo > > If I didn't specify "targetNamespace" in my XSD, I assume I can invoke > DataFactory.INSTANCE.create("", "MyType") or > DataFactory.INSTANCE.create(null, "MyType") to create a data object of MyType. > Now, I got the null pointer exception like .. > Exception in thread "main" java.lang.NullPointerException > at org.eclipse.emf.ecore.util.EcoreUtil.create(EcoreUtil.java:2760) > at > org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl. > java:56) > at > org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl. > java:43) -- 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
