jQuery in Action, 2nd edition*
The moose likes Other Open Source Projects and the fly likes JMSException Error deserializing object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JMSException Error deserializing object" Watch "JMSException Error deserializing object" New topic

JMSException Error deserializing object

Priyaa V Kumar
Ranch Hand

Joined: Aug 12, 2004
Posts: 32

I created a class called Result that implements the Serializable interface.
I send this serializable object to a Topic using Log4J's JMSAppender.

in my client prg that uses log4j to send message to a topic, I write


When I deploy the message driven bean, i include the Result class in the jar.

On the MDB, I try to get the Result object like this

if (message instanceof ObjectMessage)
ObjectMessage m = (ObjectMessage) message;
Result rslt = (Result) m.getObject();

I get a JMSException " Error deserializing object" ... Why is the Result class not available to the bean to deserialise? I unjared the deployed mdb and found the Result.class
Consider Paul's rocket mass heater.
subject: JMSException Error deserializing object
Similar Threads
weblogic.jms. common.JMSException: Error deserializing object
Exception in receiving ObjectMessage in JMS
Error deserializing Object
MDB onMessage method
RE: Receiveing ObjectMessage in JMS