Author |
Message
|
boaz |
Posted: Wed Jul 10, 2002 5:34 am Post subject: failed to send message to MQ queue |
|
|
Apprentice
Joined: 28 May 2002 Posts: 43
|
I'm using MDB on WAS 4.0.2 and MQSeries 5.2
Each time I get a message in the MDB onMessage, I'm sending it to another queue.
When 'm running 5 or more MDB sessions, with heavy load, each MDB is trying to send a message to the queue and I get the following error:
Code: |
javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java(Compiled Code))
at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java(Compiled Code))
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java(Compiled Code))
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java(Compiled Code))
at com.ibm.ejs.jms.mq.JMSWrapQueueSender.send(JMSWrapQueueSender.java(Compiled Code))
at il.adamtech.fmk.pubsub.model.QueueSend.send(QueueSend.java(Compiled Code))
at il.adamtech.fmk.pubsub.ejb.PublisherEJB.onMessage(PublisherEJB.java(Compiled Code))
at il.adamtech.fmk.pubsub.ejb.EJSRemoteStatelessPublisher.onMessage(EJSRemoteStatelessPublisher.java:25)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.cmm.listener.MDBPoolImpl.onMessage(MDBPoolImpl.java(Compiled Code))
at com.ibm.cmm.listener.MDBWrapper.onMessage(MDBWrapper.java(Compiled Code))
at com.ibm.mq.jms.MQSession.run(MQSession.java(Compiled Code))
at com.ibm.cmm.listener.ServerSession.run(ServerSession.java(Compiled Code))
at com.ibm.cmm.listener.ThreadPool$PooledThread.run(ThreadPool.java(Compiled Code)) |
Any Help?? |
|
Back to top |
|
 |
amigupta1978 |
Posted: Wed Jul 10, 2002 9:36 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
HI,
Can u get the linked exception from ur code,,,this will give base MQ exception
try
{
ur code....
}
catch (JMSException jmsx)
{
jmsx.printStackTrace();
Exception ex = jmsx.getLinkedException();
if (ex!=null)
{
ex.printStackTrace();
}
}
regards,
amit |
|
Back to top |
|
 |
boaz |
Posted: Wed Jul 10, 2002 10:30 pm Post subject: |
|
|
Apprentice
Joined: 28 May 2002 Posts: 43
|
Thank you for the fast reply, I'll try it.
I still have another problem:
When working under high-load, There is a MessageFormatException Unable to deserialize object each time I try to get the object from the JMS message arrived.
How can the message be non-serielized if it passed the queue?
Code: |
javax.jms.MessageFormatException: MQJMS1061: Unable to deserialize object
at com.ibm.jms.JMSMessage.newMessageFormatException(JMSMessage.java:4435)
at com.ibm.jms.JMSObjectMessage.getObject(JMSObjectMessage.java(Compiled Code))
at il.adamtech.fmk.pubsub.model.QueueListener.run(QueueListener.java:113)
at java.lang.Thread.run(Thread.java:498)
java.io.StreamCorruptedException: InputStream does not contain a serialized object
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.<init>(ObjectInputStream.java(Compiled Code))
at com.ibm.jms.MQObjectInputStream.<init>(MQObjectInputStream.java(Compiled Code))
at com.ibm.jms.JMSObjectMessage.getObject(JMSObjectMessage.java(Compiled Code))
at il.adamtech.fmk.pubsub.model.QueueListener.run(QueueListener.java:113)
at java.lang.Thread.run(Thread.java:498) |
Thanks!! |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jul 11, 2002 9:05 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Do you only get the unable to deserialize object under heavy load or all of the time? I thought that there was a bug in the JMS regarding trying to deserialize objects when running under WAS. I'd suggest getting the latest MA88 if you don't already have it because I thought it fixed the problem. |
|
Back to top |
|
 |
boaz |
Posted: Sat Jul 13, 2002 9:28 pm Post subject: |
|
|
Apprentice
Joined: 28 May 2002 Posts: 43
|
Hi:
I don't get this exception all of the time, but from time to time.
I downloaded and checked the MA88 and I have the latest version instaled on my WAS (running on AIX) so this is something else.
Any other help? |
|
Back to top |
|
 |
boaz |
Posted: Sat Jul 13, 2002 11:12 pm Post subject: |
|
|
Apprentice
Joined: 28 May 2002 Posts: 43
|
Regarding my first exception when failing to send a message, I got the linked exception:
Code: |
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2334 |
Any help on this? |
|
Back to top |
|
 |
RogerLacroix |
Posted: Sun Jul 14, 2002 8:33 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
From Appendix A of the MQSeries Application Programming Reference manual:
Quote: |
MQRC_RFH_ERROR (2334, X'091E')
Explanation: The message contains an MQRFH structure, but the structure is not valid.
Completion Code: MQCC_FAILED
Programmer Response: Modify the application that generated the message to ensure that it places a valid MQRFH structure in the message data. |
later
Roger... |
|
Back to top |
|
 |
boaz |
Posted: Sun Jul 14, 2002 9:12 pm Post subject: Thanks!! |
|
|
Apprentice
Joined: 28 May 2002 Posts: 43
|
Read that, but thanks!
Any way, it seems that since I'm running a client over NT and a server over AIX, The problem of serialization was CharSetID problem. |
|
Back to top |
|
 |
|