Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMSException Error deserializing object

Priyaa V Kumar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic