|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
A question about "com.ibm.mq.MQException: MQJE001: An M |
« View previous topic :: View next topic » |
Author |
Message
|
thomas2004 |
Posted: Tue Nov 25, 2008 7:11 am Post subject: A question about "com.ibm.mq.MQException: MQJE001: An M |
|
|
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 |
|
 |
Vitor |
Posted: Tue Nov 25, 2008 7:42 am Post subject: Re: A question about "com.ibm.mq.MQException: MQJE001: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
thomas2004 wrote: |
Can someone help? |
Yes - search the documentation and this forum for the 2059 reason code. You'll find loads of discussion, possible causes, possible remidies. It's probably the most common error, and (if your code works on another machine) is probably a configuration / network error of some kind rather than your code. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 25, 2008 4:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
MQQueueManager qMgr = new MQQueueManager(managerName) |
Have you tried instead:
MQQueueManager qMgr = new MQQueueManager(properties.getManagerProperties());
By just passing the qmgr name you are not taking advantage of the client connection you defined in the properties. As such it is looking for a qmgr local to the box your code is running in.... and I trust that properties.getManagerProperties() returns a java.util.HashTable  _________________ MQ & Broker admin |
|
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
|
|
|
|