ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » failed to send message to MQ queue

Post new topic  Reply to topic
 failed to send message to MQ queue « View previous topic :: View next topic » 
Author Message
boaz
PostPosted: Wed Jul 10, 2002 5:34 am    Post subject: failed to send message to MQ queue Reply with quote

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
View user's profile Send private message Send e-mail
amigupta1978
PostPosted: Wed Jul 10, 2002 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
boaz
PostPosted: Wed Jul 10, 2002 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Thu Jul 11, 2002 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
boaz
PostPosted: Sat Jul 13, 2002 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
boaz
PostPosted: Sat Jul 13, 2002 11:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Sun Jul 14, 2002 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
boaz
PostPosted: Sun Jul 14, 2002 9:12 pm    Post subject: Thanks!! Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » failed to send message to MQ queue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.