You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2006/03/10 18:55:39 UTC

[jira] Created: (TUSCANY-114) Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()

Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()
-----------------------------------------------------------------------

         Key: TUSCANY-114
         URL: http://issues.apache.org/jira/browse/TUSCANY-114
     Project: Tuscany
        Type: Bug
    Reporter: Raymond Feng


I have this element defined in the XSD:

	<element name="comment3" type="anyType"/>

When the XSD is loaded by XSDHelper.define(), I got this type:

org.apache.tuscany.sdo.impl.ClassImpl@447a447a (name: EObject) (instanceClassName: null) (abstract: false, interface: false)

Unfortunately, it's container is:
 
org.eclipse.emf.ecore.impl.EcorePackageImpl@46e646e6 (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix: ecore)

In this case, EcoreUtil.create() will return EObject instead of DataObject. The following code fails with ClassCastException.

        AnyTypeDataObject comment3 = (AnyTypeDataObject) dataFactory.create(c3.getType());

Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl incompatible with commonj.sdo.DataObject


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


[jira] Resolved: (TUSCANY-114) Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-114?page=all ]
     
Frank Budinsky resolved TUSCANY-114:
------------------------------------

    Resolution: Fixed

Fixed in revision 396651.

> Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()
> -----------------------------------------------------------------------
>
>          Key: TUSCANY-114
>          URL: http://issues.apache.org/jira/browse/TUSCANY-114
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Implementation
>     Reporter: Raymond Feng

>
> I have this element defined in the XSD:
> 	<element name="comment3" type="anyType"/>
> When the XSD is loaded by XSDHelper.define(), I got this type:
> org.apache.tuscany.sdo.impl.ClassImpl@447a447a (name: EObject) (instanceClassName: null) (abstract: false, interface: false)
> Unfortunately, it's container is:
>  
> org.eclipse.emf.ecore.impl.EcorePackageImpl@46e646e6 (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix: ecore)
> In this case, EcoreUtil.create() will return EObject instead of DataObject. The following code fails with ClassCastException.
>         AnyTypeDataObject comment3 = (AnyTypeDataObject) dataFactory.create(c3.getType());
> Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl incompatible with commonj.sdo.DataObject

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


[jira] Updated: (TUSCANY-114) Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-114?page=all ]

Jean-Sebastien Delfino updated TUSCANY-114:
-------------------------------------------

    Component: Java SDO Implementation

Moving to the correct component.

> Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()
> -----------------------------------------------------------------------
>
>          Key: TUSCANY-114
>          URL: http://issues.apache.org/jira/browse/TUSCANY-114
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Implementation
>     Reporter: Raymond Feng

>
> I have this element defined in the XSD:
> 	<element name="comment3" type="anyType"/>
> When the XSD is loaded by XSDHelper.define(), I got this type:
> org.apache.tuscany.sdo.impl.ClassImpl@447a447a (name: EObject) (instanceClassName: null) (abstract: false, interface: false)
> Unfortunately, it's container is:
>  
> org.eclipse.emf.ecore.impl.EcorePackageImpl@46e646e6 (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix: ecore)
> In this case, EcoreUtil.create() will return EObject instead of DataObject. The following code fails with ClassCastException.
>         AnyTypeDataObject comment3 = (AnyTypeDataObject) dataFactory.create(c3.getType());
> Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl incompatible with commonj.sdo.DataObject

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


[jira] Commented: (TUSCANY-114) Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-114?page=comments#action_12369909 ] 

Raymond Feng commented on TUSCANY-114:
--------------------------------------

Calling the DataObjectUtil.initRuntime() in my startup code does NOT help in this case.



> Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()
> -----------------------------------------------------------------------
>
>          Key: TUSCANY-114
>          URL: http://issues.apache.org/jira/browse/TUSCANY-114
>      Project: Tuscany
>         Type: Bug
>     Reporter: Raymond Feng

>
> I have this element defined in the XSD:
> 	<element name="comment3" type="anyType"/>
> When the XSD is loaded by XSDHelper.define(), I got this type:
> org.apache.tuscany.sdo.impl.ClassImpl@447a447a (name: EObject) (instanceClassName: null) (abstract: false, interface: false)
> Unfortunately, it's container is:
>  
> org.eclipse.emf.ecore.impl.EcorePackageImpl@46e646e6 (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix: ecore)
> In this case, EcoreUtil.create() will return EObject instead of DataObject. The following code fails with ClassCastException.
>         AnyTypeDataObject comment3 = (AnyTypeDataObject) dataFactory.create(c3.getType());
> Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl incompatible with commonj.sdo.DataObject

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


[jira] Commented: (TUSCANY-114) Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-114?page=comments#action_12369901 ] 

Frank Budinsky commented on TUSCANY-114:
----------------------------------------

Raymond, I think this may be the same as your other problem (TUSCANY-112).

Frank.


> Loaded SDO2 Type for xsd:anyType cannot be used in DataFactory.create()
> -----------------------------------------------------------------------
>
>          Key: TUSCANY-114
>          URL: http://issues.apache.org/jira/browse/TUSCANY-114
>      Project: Tuscany
>         Type: Bug
>     Reporter: Raymond Feng

>
> I have this element defined in the XSD:
> 	<element name="comment3" type="anyType"/>
> When the XSD is loaded by XSDHelper.define(), I got this type:
> org.apache.tuscany.sdo.impl.ClassImpl@447a447a (name: EObject) (instanceClassName: null) (abstract: false, interface: false)
> Unfortunately, it's container is:
>  
> org.eclipse.emf.ecore.impl.EcorePackageImpl@46e646e6 (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix: ecore)
> In this case, EcoreUtil.create() will return EObject instead of DataObject. The following code fails with ClassCastException.
>         AnyTypeDataObject comment3 = (AnyTypeDataObject) dataFactory.create(c3.getType());
> Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl incompatible with commonj.sdo.DataObject

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