Re: Eclipse EMF bug 152166 impact on Tuscany SDO

2006-08-03 Thread Frank Budinsky
Hi Ron,

We're one step ahead of you :-) We've already switched our pom files to 
pick up weekly SNAPSHOT builds from EMF. So we should pick up this fix 
starting today.

Frank.

Ron Gavlin [EMAIL PROTECTED] wrote on 08/03/2006 07:07:08 AM:

 Greetings,
 
 I bumped into EMF bug 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=152166
 (XML loader namespace-scoping problems) during my Tuscany SDO usage 
 that proved to be a show-stopper for us. The bug was fixed in EMF 2.
 2.1-M20060803. Do you have plans to build/test with the latest 
 EMF milestone releases or will you stick with stable releases? Since
 EMF is such an integral part of the Tuscany SDO implementation, we 
 would like to see the latest EMF code incorporated in your interim 
 builds, a little like EMF/SDO currently works. 
 
 Regards,
 
 - Ron
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.ClassCastException using TypeHelper

2006-08-03 Thread Frank Budinsky
Philipp,

This error is usually means that the SDO runtime has not been initialized. 
Usually it happens as a side effect of accessing SDO helpers, but 
generated classes often have this problem. We're hopefully going to come 
up with a good way to avoid this in the future, but for now you can force 
initialization by calling DataObjectUtil.initRuntime() at the very start 
of your program.

Frank.

Philipp Schöpf [EMAIL PROTECTED] wrote on 08/03/2006 01:32:00 PM:

 Hi,
 
 I am encountering strange problems with the actual tuscany build (I 
 got it from subversion this day) . This is what happens when I try 
 to determine the type of my DataObject, calling myDataObject.getType():
 
 java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EClassImpl
  at org.apache.tuscany.sdo.impl.DataObjectImpl.
 getType(DataObjectImpl.java:190)
 
 I tried working around this using the Typehelper on my object, but 
 this led to a similar error, calling TypeHelper.INSTANCE.
 getType(myDataObject.class);:
 
 java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EClassImpl
  at org.apache.tuscany.sdo.helper.TypeHelperImpl.
 getType(TypeHelperImpl.java:98)
 
 
 Btw, my DataObject class was generated from Xsd with the 
 XSD2JavaGenerator. I am using the actual EMF 2.2.1 snapshot 
 downloaded by maven during build. Btw, I never tried the same with 
 the M1 build, should I?
 
 Any hints?
 
 Thanks in advance,
 Philipp
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]