com.ibm.mq.MQException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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

tip

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


rafaelrafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafaelrafael
tip

spring-data-redis requires redis 2.6+ to work properly.

tip

Check if your MongoDB is available.


rprp
tip

host port isnt set

tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafaelrafael
tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

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

  • Oracle 10g AQ <-> IBM WebSphere MQ
    via by 545802,
  • Apache Camel MQXAQueueConnectionFactory
    via by Unknown author,
  • Fails at the moment with {panel} ================================================================================ = Testing: round trip (org.mule.providers.email.EmailRoundTripTestCase) = ================================================================================ org.mule.config.ConfigurationException: Failed to invoke lifecycle phase "start" on object: Mule at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:158) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:79) at org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:51) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:272) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.mule.umo.lifecycle.LifecycleException: Failed to invoke lifecycle phase "start" on object: org.mule.impl.model.seda.SedaModel@cc7439 at org.mule.impl.lifecycle.LifecyclePhase.applyLifecycle(LifecyclePhase.java:249) at org.mule.impl.lifecycle.LifecyclePhase.fireLifecycle(LifecyclePhase.java:110) at org.mule.impl.lifecycle.GenericLifecycleManager.firePhase(GenericLifecycleManager.java:82) at org.mule.impl.ManagementContext.start(ManagementContext.java:232) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:149) ... 23 more Caused by: org.mule.umo.model.ModelException: Failed to connect listener RetrieveMessageReceiver{this=8390b0, receiverKey=bob@localhost:62002, endpoint=pop3://bob:secret@localhost:62002} for endpoint endpoint.pop3.bob.localhost.62002 at org.mule.impl.model.AbstractComponent.connectListeners(AbstractComponent.java:685) at org.mule.impl.model.AbstractComponent.start(AbstractComponent.java:285) at org.mule.impl.model.AbstractComponent.start(AbstractComponent.java:264) at org.mule.impl.model.AbstractModel.startComponent(AbstractModel.java:365) at org.mule.impl.model.AbstractModel.start(AbstractModel.java:330) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.impl.lifecycle.LifecyclePhase.applyLifecycle(LifecyclePhase.java:245) ... 27 more Caused by: org.mule.providers.FatalConnectException: ReconnectStrategy "org.mule.providers.SingleAttemptConnectionStrategy" failed to reconnect receiver on endpoint "pop3://bob:secret@localhost:62002" at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29) at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:100) at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:441) at org.mule.impl.model.AbstractComponent.connectListeners(AbstractComponent.java:681) ... 36 more Caused by: org.mule.providers.ConnectException: Initialisation Failure: Connect failed at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:473) at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:25) ... 39 more Caused by: javax.mail.MessagingException: Connect failed; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148) at javax.mail.Service.connect(Service.java:275) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at org.mule.providers.email.RetrieveMessageReceiver.doConnect(RetrieveMessageReceiver.java:83) at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:452) ... 40 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.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189) at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81) at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201) at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144) ... 45 more Process finished with exit code -1 {panel}
    via by Andrew Perepelytsya,
  • Fails at the moment with {panel} ================================================================================ = Testing: round trip (org.mule.providers.email.EmailRoundTripTestCase) = ================================================================================ org.mule.config.ConfigurationException: Failed to invoke lifecycle phase "start" on object: Mule at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:158) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:79) at org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:51) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:272) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.mule.umo.lifecycle.LifecycleException: Failed to invoke lifecycle phase "start" on object: org.mule.impl.model.seda.SedaModel@cc7439 at org.mule.impl.lifecycle.LifecyclePhase.applyLifecycle(LifecyclePhase.java:249) at org.mule.impl.lifecycle.LifecyclePhase.fireLifecycle(LifecyclePhase.java:110) at org.mule.impl.lifecycle.GenericLifecycleManager.firePhase(GenericLifecycleManager.java:82) at org.mule.impl.ManagementContext.start(ManagementContext.java:232) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:149) ... 23 more Caused by: org.mule.umo.model.ModelException: Failed to connect listener RetrieveMessageReceiver{this=8390b0, receiverKey=bob@localhost:62002, endpoint=pop3://bob:secret@localhost:62002} for endpoint endpoint.pop3.bob.localhost.62002 at org.mule.impl.model.AbstractComponent.connectListeners(AbstractComponent.java:685) at org.mule.impl.model.AbstractComponent.start(AbstractComponent.java:285) at org.mule.impl.model.AbstractComponent.start(AbstractComponent.java:264) at org.mule.impl.model.AbstractModel.startComponent(AbstractModel.java:365) at org.mule.impl.model.AbstractModel.start(AbstractModel.java:330) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.impl.lifecycle.LifecyclePhase.applyLifecycle(LifecyclePhase.java:245) ... 27 more Caused by: org.mule.providers.FatalConnectException: ReconnectStrategy "org.mule.providers.SingleAttemptConnectionStrategy" failed to reconnect receiver on endpoint "pop3://bob:secret@localhost:62002" at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29) at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:100) at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:441) at org.mule.impl.model.AbstractComponent.connectListeners(AbstractComponent.java:681) ... 36 more Caused by: org.mule.providers.ConnectException: Initialisation Failure: Connect failed at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:473) at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:25) ... 39 more Caused by: javax.mail.MessagingException: Connect failed; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148) at javax.mail.Service.connect(Service.java:275) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at org.mule.providers.email.RetrieveMessageReceiver.doConnect(RetrieveMessageReceiver.java:83) at org.mule.providers.AbstractMessageReceiver.connect(AbstractMessageReceiver.java:452) ... 40 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.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189) at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81) at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201) at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144) ... 45 more Process finished with exit code -1 {panel}
    via by Andrew Perepelytsya,
    • 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 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

    Users with the same issue

    jf-astjf-ast
    3 times, last one,
    AxeloAxelo
    2 times, last one,
    Andreas HäberAndreas Häber
    2 times, last one,
    Unknown UserUnknown User
    1 times, last one,
    osvzsosvzs
    14 times, last one,
    479 more bugmates