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 » An MQException occurred: Completion Code 2, Reason 2059

Post new topic  This topic is locked: you cannot edit posts or make replies.
 An MQException occurred: Completion Code 2, Reason 2059 « View previous topic :: View next topic » 
Author Message
thomas2004
PostPosted: Tue Nov 25, 2008 12:32 pm    Post subject: An MQException occurred: Completion Code 2, Reason 2059 Reply with quote

Novice

Joined: 13 Nov 2008
Posts: 16

Hi all,

I write a Web-Service which will connect to the MQ-Manager. As I deploy this WebService local on Tomcat 5.5.23, there is no problem.

Now I deploy my Web-Service to another Tomcat and I got exception as follow.

My code connecting the MQ-Manager looks as follow.

Can someone help?

Code:


...
      MQEnvironment.hostname = properties.getManagerProperties()
            .getHost_name();
      MQEnvironment.channel = properties.getManagerProperties()
            .getMq_channel();
      MQEnvironment.port = new Integer(properties.getManagerProperties()
            .getMq_port());
      // Bind MQQueueManager
      String managerName = properties.getManagerProperties().getMq_manager_name();
      logger.info("Manager=" + managerName);
      MQQueueManager qMgr = new MQQueueManager(managerName);
...



Code:

SEVERE: 2059
com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused
   at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:242)
   at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:276)
   at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:296)
   at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
   at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
   at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:754)
   at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
   at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:417)
   at de.proactiv.mq.monitoring.functions.MessageRequirer.technicalRequirer(MessageRequirer.java:139)
   at de.proactiv.mq.monitoring.ws.MQMonitoring.requier(MQMonitoring.java:34)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:197)
   at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:132)
   at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:251)
   at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:75)
   at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:541)
   at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:497)
   at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:392)
   at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:207)
   at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:350)
   at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:171)
   at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
   at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:161)
   at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:49)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Thread.java:595)
Caused by: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
Back to top
View user's profile Send private message
atheek
PostPosted: Tue Nov 25, 2008 12:49 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Quote:
2059 0x0000080b MQRC_Q_MGR_NOT_AVAILABLE


You are trying to connect to a queue manager that is either not running or you are connecting to it at the wrong port.

-Check whether the queue manager you are connecting is up and running
- Check whether the queue manger listener is running at the same port as you have configured in your properties file.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 26, 2008 2:11 am    Post subject: Reply with quote

Grand High Poobah

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

Don't double post - it's rude!

You're also unlikely to get different or faster answers.

http://www.mqseries.net/phpBB2/viewtopic.php?p=231702&highlight=#231702
_________________
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  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » An MQException occurred: Completion Code 2, Reason 2059
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.