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 » after a few success run-Error MQJMS2005: failed to create.

Post new topic  Reply to topic
 after a few success run-Error MQJMS2005: failed to create. « View previous topic :: View next topic » 
Author Message
prashant
PostPosted: Wed Apr 23, 2003 7:53 am    Post subject: after a few success run-Error MQJMS2005: failed to create. Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Apr 23, 2003 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
prashant
PostPosted: Wed Apr 23, 2003 8:22 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Apr 23, 2003 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
prashant
PostPosted: Wed Apr 23, 2003 8:45 am    Post subject: Reply with quote

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
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 » after a few success run-Error MQJMS2005: failed to create.
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.