Advertisement

09.19.2005 at 06:43AM PDT, ID: 21566142
[x]
Attachment Details

Deserialization Problem

Asked by ngujja in Java Programming Language

Tags: deserialize, unable, object

Hi,
Iam unable to deserialize an Object in my MDB. The client which puts the message runs on a different jvm and my MDB is running on a different jvm. I thought the problem might be with my different versions of the object so I put the serialVersionUID in the code rebuild and re-started the jvm on client and MDB side and still Iam unable to deserialize the object. Here's the stacktrace from MDB:

<Exception occurred reading message body: javax.jms.MessageFormatException: MQJMS1061: Unable to deserialize object>
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R javax.jms.MessageFormatException: MQJMS1061: Unable to deserialize object
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.jms.JMSMessage.newMessageFormatException(JMSMessage.java:4694)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.jms.JMSObjectMessage.getObject(JMSObjectMessage.java:259)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.llbean.paymentauthorization.statistics.session.PmtAuthLogStatsMDBBean.onMessage(PmtAuthLogStatsMDBBean.java:38)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:208)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:56)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:197)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:175)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.mq.jms.MQSession.run(MQSession.java:1043)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:923)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:697)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:482)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:449)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[9/19/05 8:56:27:182 EDT]  8289cc2 SystemErr     R       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
[9/19/05 8:56:27:192 EDT]  8289cc2 SystemErr     R       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

I put the following in my Object:
static final long serialVersionUID = -5246390086564069373L;

What else should I do to solve this problem?
Any help appreciated.
ngujjaStart Free Trial
[+][-]09.19.2005 at 06:45AM PDT, ID: 14911636

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:46AM PDT, ID: 14911639

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:47AM PDT, ID: 14911659

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:48AM PDT, ID: 14911667

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: deserialize, unable, object
Sign Up Now!
Solution Provided By: zzynx
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.19.2005 at 06:51AM PDT, ID: 14911699

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:53AM PDT, ID: 14911711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:54AM PDT, ID: 14911722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:55AM PDT, ID: 14911735

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:57AM PDT, ID: 14911745

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:57AM PDT, ID: 14911752

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:58AM PDT, ID: 14911762

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 06:59AM PDT, ID: 14911770

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:01AM PDT, ID: 14911786

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:03AM PDT, ID: 14911807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:05AM PDT, ID: 14911834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:08AM PDT, ID: 14911857

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:09AM PDT, ID: 14911868

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:19AM PDT, ID: 14911979

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.19.2005 at 08:37AM PDT, ID: 14912812

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 08:38AM PDT, ID: 14912825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 08:58AM PDT, ID: 14912995

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32