This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes SOA and ESB and the fly likes tuscany SDO beginner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » SOA and ESB
Bookmark "tuscany SDO beginner" Watch "tuscany SDO beginner" New topic

tuscany SDO beginner

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416

my first tuscany sdo program:

i import all jar under lib dir of tuscany_sdo1.1 package, when i run it, the following exception thrown at "root.getString("person/name")":

Exception in thread "main" java.lang.ClassCastException: org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList incompatible with org.eclipse.emf.ecore.EObject
at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.process(
at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.init(
at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.create(
at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.create(
at org.apache.tuscany.sdo.util.DataObjectUtil.get(
at org.apache.tuscany.sdo.impl.DataObjectImpl.get(
at org.apache.tuscany.sdo.impl.DataObjectImpl.getString(
at Test.main(

why is it? who can help, appreciated first.
Roger Sterling
Ranch Hand

Joined: Apr 06, 2012
Posts: 426

The result coming back from your DataObject call is an EReference which is not castable to a Java String type, and why the getString call fails. There is a bug on this behavior with the Tuscany team and since no development has taken place on the main code stream for over a year, I wouldn't hold your breath waiting for a fix. You might have better success with or .
I agree. Here's the link:
subject: tuscany SDO beginner
It's not a secret anymore!