com.ibm.mq.MQException

MQJE001: Completion Code '2', Reason '2059'.

Samebug tips9

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web355

  • via Oracle Community by 545802, 2 weeks ago
    MQJE001: Completion Code '2', Reason '2059'.
  • via Oracle Community by 341376, 11 months ago
    MQJE001: Completion Code '2', Reason '2059'.
  • MQJE001: Completion Code 2, Reason 2059
  • Stack trace

    • com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2059'. at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:229) at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:500) at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:541) at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:95) at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:182) at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:870) at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:756) at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:704) at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:169) at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:677) at oracle.mgw.drivers.mq.MQOPHandle.<init>(MQOPHandle.java:60) at oracle.mgw.drivers.mq.MQOPHandleFactory.createOPHandle(MQOPHandleFactory.java:35) at oracle.mgw.drivers.OPHandlePool.getHandle(OPHandlePool.java:133) at oracle.mgw.drivers.mq.MQLink.registerDestination(MQLink.java:382) at oracle.mgw.engine.DestMgr.getForeignDest(DestMgr.java:54) at oracle.mgw.engine.JobData.createAlterNativeSub(JobData.java:1248) at oracle.mgw.engine.Worker.createDurableSub(Worker.java:2486) at oracle.mgw.engine.Worker.myRun(Worker.java:94) at oracle.mgw.engine.ManagedThr.run(ManagedThr.java:58) Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2059;AMQ9213: A communications error for occurred. [1=java.net.ConnectException[Connection refused: connect],3=Istana] at com.ibm.mq.jmqi.remote.internal.RemoteTCPConnection.connnectUsingLocalAddress(RemoteTCPConnection.java:632) at com.ibm.mq.jmqi.remote.internal.RemoteTCPConnection.protocolConnect(RemoteTCPConnection.java:980) at com.ibm.mq.jmqi.remote.internal.system.RemoteConnection.connect(RemoteConnection.java:989) at com.ibm.mq.jmqi.remote.internal.system.RemoteConnectionPool.getConnection(RemoteConnectionPool.java:293) at com.ibm.mq.jmqi.remote.internal.RemoteFAP.jmqiConnect(RemoteFAP.java:1371) at com.ibm.mq.MQSESSION.MQCONNX_j(MQSESSION.java:924) at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:224) ... 18 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:464) at java.net.Socket.connect(Socket.java:414) at com.ibm.mq.jmqi.remote.internal.RemoteTCPConnection$2.run(RemoteTCPConnection.java:618) at java.security.AccessController.doPrivileged(Native Method) at com.ibm.mq.jmqi.remote.internal.RemoteTCPConnection.connnectUsingLocalAddress(RemoteTCPConnection.java:611) ... 24 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    16 times, 2 hours ago
    3 times, 18 hours ago
    11 times, 1 week ago
    3 times, 2 weeks ago
    3 times, 1 month ago
    483 more bugmates