|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQJMS2007: failed to send message to MQ queue |
« View previous topic :: View next topic » |
Author |
Message
|
brgmo |
Posted: Wed May 16, 2007 3:10 am Post subject: MQJMS2007: failed to send message to MQ queue |
|
|
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)
|
Regards
brgmo |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 16, 2007 3:15 am Post subject: |
|
|
 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 |
|
 |
brgmo |
Posted: Wed May 16, 2007 6:30 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed May 16, 2007 6:59 am Post subject: |
|
|
 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 |
|
 |
jsware |
Posted: Wed May 16, 2007 8:20 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|