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 » MQJMS2007: failed to send message to MQ queue

Post new topic  Reply to topic
 MQJMS2007: failed to send message to MQ queue « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed May 16, 2007 3:10 am    Post subject: MQJMS2007: failed to send message to MQ queue Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All,

I am using a stateless session bean inside jBoss to put the message in WMQ queue. Intermittently, i am getting the following error. I tried to find on the site using search facility but without any luck. Below is the whole trace of te eception:

Quote:

2007-05-10 13:25:10,000 INFO [STDOUT] MQJMS2007: failed to send message to MQ queue
2007-05-10 13:25:10,000 ERROR [STDERR] javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
2007-05-10 13:25:10,000 ERROR [STDERR] at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
2007-05-10 13:25:10,000 ERROR [STDERR] at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:816)
2007-05-10 13:25:10,000 ERROR [STDERR] at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:232)
2007-05-10 13:25:10,000 ERROR [STDERR] at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:265)
2007-05-10 13:25:10,000 ERROR [STDERR] at stc.business.common.MessageUtils.send(MessageUtils.java:141)
2007-05-10 13:25:10,015 ERROR [STDERR] at stc.business.services.ejb.Batcher.send(Batcher.java:151)
2007-05-10 13:25:10,015 ERROR [STDERR] at stc.business.services.ejb.Batcher.ejbTimeout(Batcher.java:190)
2007-05-10 13:25:10,015 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
2007-05-10 13:25:10,015 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2007-05-10 13:25:10,015 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:99)
2007-05-10 13:25:10,015 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:524)
2007-05-10 13:25:10,015 ERROR [STDERR] at java.util.TimerThread.mainLoop(Unknown Source)
2007-05-10 13:25:10,015 ERROR [STDERR] at java.util.TimerThread.run(Unknown Source)
Quote:
Quote:


Regards
brgmo
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 16, 2007 3:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Your JMSException as shown here is useless.
You need to capture it and extract the linked exception.
The linked exception is implementation specific (provider specific) and will tell us what is going on.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
brgmo
PostPosted: Wed May 16, 2007 6:30 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi Saper,

Can you please guide me as how to capture the linked exception. Thanks a lot for guiding all the way.

Regards
brgmo.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed May 16, 2007 6:59 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

brgmo wrote:
Can you please guide me as how to capture the linked exception.


Code:

catch (JMSException e){
System.out.println("Exception occurred: " +e.toString());
Exception ex = e.getLinkedException();
if(ex!=null)
System.out.println("Linked Exception is : "+ex);
}



Or something like......

(not tried, not tested, use at your own risk)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jsware
PostPosted: Wed May 16, 2007 8:20 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

brgmo wrote:
Can you please guide me as how to capture the linked exception. Thanks a lot for guiding all the way.

Regards
brgmo.
IIRC under Java 1.4, I believe that the getCause() and getLinkedException() methods return the same. Thus if you e.printStackTrace(); it should print a "caused by" section too.
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQJMS2007: 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.