Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by LittlePanda

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

  2. ,
    Expert tip

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

Solutions on the web

via Oracle Community by 545802, 11 months ago
MQJE001: Completion Code '2', Reason '2059'.
via oracle.com by Unknown author, 2 years ago
MQJE001: Completion Code '2', Reason '2059'.
via Oracle Community by 341376, 1 year ago
MQJE001: Completion Code '2', Reason '2059'.
via Stack Overflow by Laabidi Raissi
, 8 months ago
via Coderanch by Suresh Achary, 1 year ago
MQJE001: An MQException occurred: Completion Code 2, Reason 2059 MQJE013: Error accessing socket streams
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.init(JobData.java:233) at oracle.mgw.engine.Worker.recoverJob(Worker.java:1086) at oracle.mgw.engine.Worker.myRun(Worker.java:98) 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 moreCaused 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