jQuery in Action, 3rd 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 REST with Spring (video course) this week in the Spring 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
I agree. Here's the link: http://aspose.com/file-tools
subject: JMSException Error deserializing object
It's not a secret anymore!