MQJCA1011: Failed to allocate a JMS connection. An internal error caused an attempt to allocate a connection to fail. See the linked exception for details of the failure.

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 web2696

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • MQJCA1011: Failed to allocate a JMS connection. An internal error caused an attempt to allocate a connection to fail. See the linked exception for details of the failure. at at at at at<init>( at at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection( at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection( at org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection( at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection( at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection( at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection( at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection( at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection( at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection( at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection( at at at at at at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.tomee.catalina.OpenEJBValve.invoke( at org.apache.catalina.authenticator.AuthenticatorBase.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.valves.AccessLogValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.AbstractHttp11Processor.process( at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( at$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: JMSWMQ0018: Failed to connect to queue manager '' with connection mode 'Client' and host name 'localhost(1414)'. Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information. at at at<init>( at at at at at at ... 37 more Caused by: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2059' ('MQRC_Q_MGR_NOT_AVAILABLE'). at ... 44 more Caused by: CC=2;RC=2059;AMQ9204: Connection to host 'localhost(1414)' rejected. [[CC=2;RC=2059;AMQ9213: A communications error for  occurred. [[Connection refused: connect],3=localhost]],3=localhost(1414),5=RemoteTCPConnection.connnectUsingLocalAddress] at at at<init>( ... 43 more Caused by: CC=2;RC=2059;AMQ9213: A communications error for  occurred. [[Connection refused: connect],3=localhost] at at at at at ... 45 more Caused by: Connection refused: connect at Method) at at at at at at at at$ at Method) at ... 49 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

    Unknown visitor
    Unknown visitorOnce,
    13 times, last one
    11 times, last one
    3 times, last one
    393 more bugmates