I’m using WID 7.0.3 to access WSRR and keep getting the following Tuscany SDO exception.
Caused by: java.lang.ClassCastException: com.ibm.xml.sdo.helper.TypeHelperImpl incompatible with org.apache.tuscany.sdo.helper.TypeHelperImpl
at java.lang.J9VMInternals.initializeImpl(Native Method)
GraphQuery query = (GraphQuery) DataFactory.INSTANCE.create(TypeConstants.SR_URI, TypeConstants. TYPE_GRAPHQUERY);
I have included the required jars inthe project - sdoint.jar and ServiceRegistryClient.jar.
This is a very basic code snippet to connect to WSRR using Java API, but looks like IBM SDO might not be compatible with Tuscany SDO.
Would greatly appreciate any pointers!
Pinned topic TypeHelper ClassCastException - WSRR and Tuscany incompatibility?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-12-09T11:07:48Z at 2010-12-09T11:07:48Z by pdrowley
pdrowley 10000041WH4 Posts
Re: TypeHelper ClassCastException - WSRR and Tuscany incompatibility?2010-12-09T11:07:48ZThis is the accepted answer. This is the accepted answer.Hi
Is this being done in a basic Java project?
Are the 2 jars mentioned as far up the classpath as they can go?
Also, the error shows that the BSRSDOHelper is where the exception is being thrown, but this is not mentioned in your calling code. Is it possible to show the exact code you are using?