Hi Raymond,

 Thanks for the reply. But I am still stuck with the issue. I am a beginner
to SDO and also to ESB, so please bear with my ignorance.

 I am here trying to send a SDO object over Jboss ESB server. I am sending
the ESB unaware SDO object as a JMS message into a JMS queue. Now A JMS
Gateway listener  receives this message to  for making it ESB aware. It
adapts the message(in this case our SDO object) to ESB aware and puts in
back in the queue. Then our listener application here receives the message
extracts the object from the payload and perform the actions we needed to
do.

So will our registry of the SDO types at the deserialization point works??
Also where can I find a sample code of this deserialization. The sample that
came with the incubator is very simple.

Thanks in advance...

Regards
Vamshi




On Thu, May 8, 2008 at 9:29 AM, Raymond Feng <[EMAIL PROTECTED]> wrote:

> Hi,
>
> You need to make sure the SDO types are correctly registered before the
> deserialization of the SDO data objects. For generated SDO classes, you can
> call the XXXFactory.INSTANCE.register(...) method.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "C.Vamshi Shekhar" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 07, 2008 6:39 AM
> To: <[email protected]>
> Subject: Problem with the Serialization of an SDO object
>
>
>  Greetings
>>
>> I was working with jboss-esb and was trying to serialize the SDO's over
>> jms
>> messages and got the following error. Any idea how to resolve this??
>>
>> ERROR [JmsGatewayListener] Problems invoking method <process>
>> java.lang.reflect.InvocationTargetException
>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>   at java.lang.reflect.Method.invoke(Unknown Source)
>>   at
>>
>> org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doRun(JmsGatewayListener.java:149)
>>   at
>>
>> org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
>>   at java.lang.Thread.run(Unknown Source)
>> *Caused by: java.lang.RuntimeException: Package with uri '
>> http://www.example.com/PO' not found. (http:///temp.xml, 4, 28)*
>>   at
>>
>> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
>>   at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:278)
>>   at
>>
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
>>   at
>>
>> org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(SDOXMLResourceImpl.java:589)
>>   at
>>
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
>>   at
>>
>> org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:266)
>>   at
>>
>> org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:239)
>>   at
>> org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:97)
>>   at
>> org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:79)
>>   at
>>
>> org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:229)
>>   at
>>
>> org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
>>   at
>>
>> commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
>>   at java.io.ObjectInputStream.readExternalData(Unknown Source)
>>   at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>>   at java.io.ObjectInputStream.readObject0(Unknown Source)
>>   at java.io.ObjectInputStream.readObject(Unknown Source)
>>   at org.jboss.messaging.util.StreamUtils.readObject(StreamUtils.java:154)
>>   at
>>
>> org.jboss.messaging.core.impl.message.MessageSupport.readPayload(MessageSupport.java:435)
>>   at
>>
>> org.jboss.messaging.core.impl.message.MessageSupport.getPayload(MessageSupport.java:264)
>>   at
>>
>> org.jboss.jms.message.JBossObjectMessage.getObject(JBossObjectMessage.java:119)
>>   at
>>
>> org.jboss.jms.message.ObjectMessageProxy.getObject(ObjectMessageProxy.java:64)
>>   at
>>
>> org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.setESBMessageBody(PackageJmsMessageContents.java:160)
>>   at
>>
>> org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.process(PackageJmsMessageContents.java:84)
>>   ... 7 more
>>
>>
>>
>>
>>
>> Thanks in advance
>>
>> --
>>
>> Regards
>> Vamshi Shekhar C
>>
>>


-- 

Thanks & Regards
Vamshi Shekhar C
Software Engineer
R&D Engg
ca (Computer Associates)
Tel: +91 40 2763 4399
Mobile: +91 984 901 1358
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to