javax.jms.JMSException: Could not connect to broker URL: tcp://my-activemq-url.com:22861?keepAlive=true&trace=true. Reason: java.net.ConnectException: Connection refused: connect javax.jms.JMSException: Error while attempting to add new Connection to the pool

Stack Overflow | Harmony888 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Camel routes fail to recover ActiveMq connection when sharing a single connection

    Stack Overflow | 8 months ago | Harmony888
    javax.jms.JMSException: Could not connect to broker URL: tcp://my-activemq-url.com:22861?keepAlive=true&trace=true. Reason: java.net.ConnectException: Connection refused: connect javax.jms.JMSException: Error while attempting to add new Connection to the pool
  2. 0

    Camel : Unable to Catch an Exception in Netty4

    Stack Overflow | 4 weeks ago | Mohammad AL Hammod
    org.apache.camel.CamelExchangeException: Cannot write response to /127.0.0.1:58397. Exchange[ID-Mohammadt-460-58269-1490636081104-0-2]. Caused by: [io.netty.handler.codec.EncoderException - org.springframework.transaction.CannotCreateTransactionException: Could not create JMS transaction; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool]
  3. 0

    ActiveMQ - User - java.net.ConnectException: Connection refused: connect, while running performance test on AMQ 5.2/5.3

    nabble.com | 1 year ago
    java.lang.RuntimeException: javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hello World Spring Jmstemplate Example

    technicalkeeda.com | 6 months ago
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect
  6. 0

    New to GraniteDS

    Google Groups | 7 years ago | Pierre
    java.lang.RuntimeException: JMSAdapter invoke error on topic message flex.messaging.messages.CommandMessage { messageRefType: null operation: SUBSCRIBE correlationId = destination = messaging-service headers = {DSDstClientId=E13BF80B-06AD-47E0-8CCE-E203F3DF10D3, DSSubtopic=4, DSEndpoint=my-gravityamf} messageId = 0E55F99D-5BAC-93C8-543A-78B9FA31F663 timestamp = 1286220674034 clientId = 186220BF-67C6-46D4-9754-0BB2B0B1AC7D timeToLive = 0 body = {} }
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)[na:1.7.0_71]
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)[na:1.7.0_71]
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)[na:1.7.0_71]
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)[na:1.7.0_71]
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)[na:1.7.0_71]
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)[na:1.7.0_71]
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.7.0_71]
    8. java.net.Socket.connect(Socket.java:579)[na:1.7.0_71]
    8 frames
  3. ActiveMQ :: Core
    TcpTransport.doStart
    1. org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:504)[activemq-core-5.7.0.jar:5.7.0]
    2. org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:467)[activemq-core-5.7.0.jar:5.7.0]
    2 frames
  4. ActiveMQ :: Broker
    ServiceSupport.start
    1. org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[activemq-core-5.7.0.jar:5.7.0]
    1 frame
  5. AMQ HTTP
    TransportFilter.start
    1. org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-core-5.7.0.jar:5.7.0]
    2. org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:132)[activemq-core-5.7.0.jar:5.7.0]
    3. org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-core-5.7.0.jar:5.7.0]
    4. org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)[activemq-core-5.7.0.jar:5.7.0]
    5. org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-core-5.7.0.jar:5.7.0]
    6. org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-core-5.7.0.jar:5.7.0]
    6 frames
  6. ActiveMQ :: Core
    ActiveMQConnectionFactory.createConnection
    1. org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:273)[activemq-core-5.7.0.jar:5.7.0]
    2. org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238)[activemq-core-5.7.0.jar:5.7.0]
    3. org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184)[activemq-core-5.7.0.jar:5.7.0]
    3 frames
  7. AMQ bundle
    PooledConnectionFactory$1.makeObject
    1. org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:259)[activemq-jms-pool-5.10.2.jar:5.10.2]
    2. org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:104)[activemq-jms-pool-5.10.2.jar:5.10.2]
    3. org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:84)[activemq-jms-pool-5.10.2.jar:5.10.2]
    3 frames
  8. Commons Pool
    GenericKeyedObjectPool.addObject
    1. org.apache.commons.pool.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1748)[commons-pool-1.6.jar:1.6]
    1 frame
  9. AMQ bundle
    PooledConnectionFactory.createConnection
    1. org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:206)[activemq-jms-pool-5.10.2.jar:5.10.2]
    2. org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:189)[activemq-jms-pool-5.10.2.jar:5.10.2]
    2 frames
  10. Spring Framework
    DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run
    1. org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:413)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    3. org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:398)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4. org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:909)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    5. org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:884)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1055)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_71]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_71]
    3. java.lang.Thread.run(Thread.java:745)[na:1.7.0_71]
    3 frames