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 » MQJMS2005: failed to create MQQueueManager

Post new topic  Reply to topic
 MQJMS2005: failed to create MQQueueManager « View previous topic :: View next topic » 
Author Message
pingu
PostPosted: Mon Jul 06, 2009 7:47 pm    Post subject: MQJMS2005: failed to create MQQueueManager Reply with quote

Newbie

Joined: 06 Jul 2009
Posts: 2

Hi, I'm new in JMS MQ
i hit this error when create connection

++++++++++++++++++++++++++++++++++++++

Exception in thread "main" javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '192.168.51.60:cw.qm1'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:644)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2505)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1850)
at com.ibm.mq.jms.MQConnection.<init>(MQConnection.java:837)
at com.ibm.mq.jms.MQConnectionFactory.createConnection(MQConnectionFactory.java:4877)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

my code is
-----
connectionFactory.setHostName(HOSTNAME);
connectionFactory.setPort(PORTNO);
connectionFactory.setQueueManager(QMGRNAME);
connectionFactory.setChannel(CHANNEL);
connectionFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);

Connection connection = connectionFactory.createConnection();

-----------------------


anyone can help me..???


Regard
Pingu
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 06, 2009 8:29 pm    Post subject: Reply with quote

Grand High Poobah

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

You need to extract the linked exception from the JMS exception and post its content... Otherwise we are blind...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pingu
PostPosted: Mon Jul 06, 2009 10:57 pm    Post subject: Reply with quote

Newbie

Joined: 06 Jul 2009
Posts: 2

it dont have linked exception..,

btw i figure out.., is my bad..,

the listener got something error, when i restart the listener then it can..,

thanx for the reply..


regards
pingu
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 06, 2009 11:12 pm    Post subject: Reply with quote

Grand High Poobah

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

pingu wrote:
it dont have linked exception..,


It does, but your code is not extracting it. A search of the forum will turn up some sample code. It really is important, as WMQ throws about 10 times the number of error codes JMS does and hence the linked exception is invaluable in pinning down any problem.

pingu wrote:
btw i figure out..,


Well yay you!

And thank you for posting the solution for the benefit of others.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » MQJMS2005: failed to create MQQueueManager
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.