[ 
http://issues.apache.org/jira/browse/TUSCANY-27?page=comments#action_12366497 ] 

Frank Budinsky commented on TUSCANY-27:
---------------------------------------

Fuhwei, DataFactory.create(null, ...) is supposed to work. Can you please 
provide your test schema that is failing.

> "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

Reply via email to