Topic
  • 1 reply
  • Latest Post - ‏2010-12-09T11:07:48Z by pdrowley
K.Singh
K.Singh
1 Post

Pinned topic TypeHelper ClassCastException - WSRR and Tuscany incompatibility?

‏2010-12-08T17:15:20Z |
Hi All,

I’m using WID 7.0.3 to access WSRR and keep getting the following Tuscany SDO exception.

Error:
Caused by: java.lang.ClassCastException: com.ibm.xml.sdo.helper.TypeHelperImpl incompatible with org.apache.tuscany.sdo.helper.TypeHelperImpl
at org.apache.tuscany.sdo.util.SDOUtil.createType(SDOUtil.java:379)
at com.ibm.sr.sdo.helper.impl.BSRSDOHelperImpl.<clinit>(BSRSDOHelperImpl.java:128)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)

Calling Code:
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!

Thanks,
K.S
Updated on 2010-12-09T11:07:48Z at 2010-12-09T11:07:48Z by pdrowley
  • pdrowley
    pdrowley
    4 Posts

    Re: TypeHelper ClassCastException - WSRR and Tuscany incompatibility?

    ‏2010-12-09T11:07:48Z  
    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?

    Thanks

    Phil