Author |
Message
|
prashant |
Posted: Wed Apr 23, 2003 7:53 am Post subject: after a few success run-Error MQJMS2005: failed to create. |
|
|
Novice
Joined: 01 Aug 2002 Posts: 17
|
Hi,
I am having a JMS application which connects to the MQseries gets a QueueConnection , creates a session, create a reciever and sender and uses queue and then closes the QueueConnection.
The problem I am facing is that after a few succesfull runs (almost 200-300), the application while trying to connect to the MQSeries start throwing the error :
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'DST-CBT2:QM_dst_cbt2'
I am definitely closing the QueueConnection after opening it.
Can somebody please tell me why it is happening so??
Thanks
Prashant |
|
Back to top |
|
 |
vennela |
Posted: Wed Apr 23, 2003 8:14 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You should catch the linked exception and post it.
Code: |
} catch( JMSException je ) {
System.out.println("JMS Exception: " + je);
// check for a linked exception
Exception le = je.getLinkedException();
if (le != null) {
System.out.println("Linked exception: " + le);
}
}
|
-------
Venny |
|
Back to top |
|
 |
prashant |
Posted: Wed Apr 23, 2003 8:22 am Post subject: |
|
|
Novice
Joined: 01 Aug 2002 Posts: 17
|
Hi,
Thanks for your reply....
I have captured the linked exception also which is as follows...
MQseries version is v5.2
OS is windows 2000
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'DST-CBT2:QM_dst_cbt2'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:434)
at com.ibm.mq.jms.MQQueueConnection.createQM(MQQueueConnection.java:479)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:183)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:6
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:105)
at com.iflex.fcc.xmlgateway.utl.IFJMSUtl.setConnection(IFJMSUtl.java:108)
at com.iflex.fcc.xmlgateway.out.IFOMsg.sendXML(IFOMsg.java:66)
at com.iflex.fcc.xmlgateway.out.IFXmlOut.HandOffDetails(IFXmlOut.java:516)
at com.iflex.fcc.xmlgateway.out.Handoffwork.run(IFOThGen.java:542)
at com.iflex.fcc.xmlgateway.out.IFThrdPl$ThreadPoolThread.run(IFThrdPl.java:84)
com.ibm.mq.MQException: Completion Code 2, Reason 2009
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:423)
at com.ibm.mq.jms.MQQueueConnection.createQM(MQQueueConnection.java:457)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:183)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:6
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:105)
at com.iflex.fcc.xmlgateway.utl.IFJMSUtl.setConnection(IFJMSUtl.java:108)
at com.iflex.fcc.xmlgateway.out.IFOMsg.sendXML(IFOMsg.java:66)
at com.iflex.fcc.xmlgateway.out.IFXmlOut.HandOffDetails(IFXmlOut.java:516)
at com.iflex.fcc.xmlgateway.out.Handoffwork.run(IFOThGen.java:542)
at com.iflex.fcc.xmlgateway.out.IFThrdPl$ThreadPoolThread.run(IFThrdPl.java:84) |
|
Back to top |
|
 |
vennela |
Posted: Wed Apr 23, 2003 8:31 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Not sure what the problem is. Are you client connecting or is it local bindings. Any chance of TCP/IP errors etc. May be you should have retry logic in your app.
-------
Venny |
|
Back to top |
|
 |
prashant |
Posted: Wed Apr 23, 2003 8:45 am Post subject: |
|
|
Novice
Joined: 01 Aug 2002 Posts: 17
|
it is standalone java program using JMS.
I do have retry logic in the program. In none of the retries I can find the queueconnection.
The MQseries Queue Manager I am connecting to is being accesed by other application also which is accessing it thru Wesphere. How will I know if there is an TCP/IP error. My java program is working on the same machine where MQseries is running.
If I restart the MQseries it starts working for some time and then after some time again same problem!!!
Thanks
Prashant |
|
Back to top |
|
 |
|