javax.jms.JMSException: Could not connect to broker URL: ssl://<NEXUS-MASTER-HOST>:<NEXUS-MASTER-PORT>. Reason: java.net.ConnectException: Connection refused

Sonatype JIRA | Andres Guerrero | 2 years ago
  1. 0

    Hi, we have a connectivity problem using smart proxy functionality in our production environment. The topology of our nexus is: A master nexus (where reading and writing is allowed) Two smart proxy nexus (read only, these are configured to receive updated events from master nexus repositories) The two nexus "proxies" contains proxy type repositories connected to repositories hosted on the nexus master. The connection is made through smart proxy functionality. A few times, we have observed that, proxy repositories are no longer able to connect to the nexus master repositories. The following stacktrace can be read in the nexus "proxies" repeatedly: jvm 1 | 2014-06-27 02:27:47 ERROR [ectionManager-1] - com.sonatype.nexus.plugins.smartproxy.internal.connection.ConnectTask - Failed jvm 1 | javax.jms.JMSException: Could not connect to broker URL: ssl://<NEXUS-MASTER-HOST>:<NEXUS-MASTER-PORT>. Reason: java.net.ConnectException: Connection refused jvm 1 | at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) ~[na:na] jvm 1 | at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:291) ~[na:na] jvm 1 | at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:235) ~[na:na] jvm 1 | at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:183) ~[na:na] jvm 1 | at com.sonatype.nexus.plugins.smartproxy.internal.connection.ConnectTask.doRun(ConnectTask.java:73) ~[na:na] jvm 1 | at org.sonatype.sisu.goodies.thread.RunnableSupport.run(RunnableSupport.java:31) ~[goodies-thread-1.7.4.jar:1.7.4] jvm 1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_55] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_55] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_55] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55] jvm 1 | at org.sonatype.sisu.goodies.thread.TaskThread.doRun(TaskThread.java:43) [goodies-thread-1.7.4.jar:1.7.4] jvm 1 | at org.sonatype.sisu.goodies.thread.ThreadSupport.run(ThreadSupport.java:82) [goodies-thread-1.7.4.jar:1.7.4] The only way to solve this situation is to reboot master nexus and then, reboot nexus proxies. We are sure that this situation is not related to network connectivity issues. Can you give me any advice? Greetings and thanks

    Sonatype JIRA | 2 years ago | Andres Guerrero
    javax.jms.JMSException: Could not connect to broker URL: ssl://<NEXUS-MASTER-HOST>:<NEXUS-MASTER-PORT>. Reason: java.net.ConnectException: Connection refused
  2. 0

    How to send messages to an ActiveMQ JMS broker behind a Firewall?

    Stack Overflow | 2 years ago
    javax.jms.JMSException: Could not connect to broker URL: tcp://A.B.C.D:61616. Reason: java.net.ConnectException: Connection refused: connect
  3. 0

    ActiveMQ embedded broker accessible via Weblogic servlet

    Stack Overflow | 3 years ago | NeplatnyUdaj
    javax.jms.JMSException: Could not connect to broker URL: http://localhost:8888/myapp/servlet/ActiveMQServlet. Reason: java.io.IOException: Failed to perform GET on: http://localhost:8888/myapp/servlet/ActiveMQServlet as response was: Not Found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WSO2 proxy writing unlimited log files

    Stack Overflow | 3 years ago | user3530505
    javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect
  6. 0

    Activemq VM Protocol - BrokerService Error

    Stack Overflow | 3 years ago | turkuaz07
    javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'broker1' does not exist.

    14 unregistered visitors
    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. javax.jms.JMSException

      Could not connect to broker URL: ssl://<NEXUS-MASTER-HOST>:<NEXUS-MASTER-PORT>. Reason: java.net.ConnectException: Connection refused

      at org.apache.activemq.util.JMSExceptionSupport.create()
    2. ActiveMQ :: Broker
      JMSExceptionSupport.create
      1. org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)[na:na]
      1 frame
    3. ActiveMQ :: Core
      ActiveMQConnectionFactory.createConnection
      1. org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:291)[na:na]
      2. org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:235)[na:na]
      3. org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:183)[na:na]
      3 frames
    4. com.sonatype.nexus
      ConnectTask.doRun
      1. com.sonatype.nexus.plugins.smartproxy.internal.connection.ConnectTask.doRun(ConnectTask.java:73)[na:na]
      1 frame
    5. org.sonatype.sisu
      RunnableSupport.run
      1. org.sonatype.sisu.goodies.thread.RunnableSupport.run(RunnableSupport.java:31)[goodies-thread-1.7.4.jar:1.7.4]
      1 frame
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_55]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_55]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_55]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_55]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_55]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_55]
      6 frames
    7. org.sonatype.sisu
      ThreadSupport.run
      1. org.sonatype.sisu.goodies.thread.TaskThread.doRun(TaskThread.java:43)[goodies-thread-1.7.4.jar:1.7.4]
      2. org.sonatype.sisu.goodies.thread.ThreadSupport.run(ThreadSupport.java:82)[goodies-thread-1.7.4.jar:1.7.4]
      2 frames