java.net.ConnectException: Connection refused]

JIRA | Stefan Heijmans | 2 years ago
  1. 0

    Starting the activemq service went find, stopping resultated in the following errror; ervice activemq stop INFO: Loading '/etc/sysconfig/activemq' INFO: Using java 'java' INFO: changing to user 'activemq' to invoke java INFO: Waiting at least 30 seconds for regular process termination of pid '27556' : Java Runtime: Sun Microsystems Inc. 1.6.0_32 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre Heap sizes: current=506816k free=504020k max=506816k JVM args: -Xms512m -Xmx512m -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal -Djava.security.auth.login.config=/etc/activemq/login.config -Dactivemq.classpath=/etc/activemq; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/usr/share/activemq -Dactivemq.conf=/etc/activemq -Dactivemq.data=/usr/share/activemq/data Extensions classpath: [/usr/share/activemq/lib,/usr/share/activemq/lib/camel,/usr/share/activemq/lib/optional,/usr/share/activemq/lib/web,/usr/share/activemq/lib/extra] ACTIVEMQ_HOME: /usr/share/activemq ACTIVEMQ_BASE: /usr/share/activemq ACTIVEMQ_CONF: /etc/activemq ACTIVEMQ_DATA: /usr/share/activemq/data Connecting to pid: 27556 INFO: failed to resolve jmxUrl for pid:27556, using default JMX url Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi p.ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:116) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.apache.activemq.console.Main.runTaskClass(Main.java:262) at org.apache.activemq.console.Main.main(Main.java:115) ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] Found a way to fix this by enabling; <managementContext createConnector="true"/> But MCollective docs [2] mentions it doesn't need this and can be left off? Or should this be fixed in another way? [2] https://docs.puppetlabs.com/mcollective/deploy/middleware/activemq.html#management-context

    JIRA | 2 years ago | Stefan Heijmans
    java.net.ConnectException: Connection refused]
  2. 0

    Starting the activemq service went find, stopping resultated in the following errror; ervice activemq stop INFO: Loading '/etc/sysconfig/activemq' INFO: Using java 'java' INFO: changing to user 'activemq' to invoke java INFO: Waiting at least 30 seconds for regular process termination of pid '27556' : Java Runtime: Sun Microsystems Inc. 1.6.0_32 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre Heap sizes: current=506816k free=504020k max=506816k JVM args: -Xms512m -Xmx512m -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal -Djava.security.auth.login.config=/etc/activemq/login.config -Dactivemq.classpath=/etc/activemq; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/usr/share/activemq -Dactivemq.conf=/etc/activemq -Dactivemq.data=/usr/share/activemq/data Extensions classpath: [/usr/share/activemq/lib,/usr/share/activemq/lib/camel,/usr/share/activemq/lib/optional,/usr/share/activemq/lib/web,/usr/share/activemq/lib/extra] ACTIVEMQ_HOME: /usr/share/activemq ACTIVEMQ_BASE: /usr/share/activemq ACTIVEMQ_CONF: /etc/activemq ACTIVEMQ_DATA: /usr/share/activemq/data Connecting to pid: 27556 INFO: failed to resolve jmxUrl for pid:27556, using default JMX url Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi p.ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:116) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.apache.activemq.console.Main.runTaskClass(Main.java:262) at org.apache.activemq.console.Main.main(Main.java:115) ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] Found a way to fix this by enabling; <managementContext createConnector="true"/> But MCollective docs [2] mentions it doesn't need this and can be left off? Or should this be fixed in another way? [2] https://docs.puppetlabs.com/mcollective/deploy/middleware/activemq.html#management-context

    JIRA | 2 years ago | Stefan Heijmans
    java.net.ConnectException: Connection refused]
  3. 0

    ActiveMQ exception when stopping

    Stack Overflow | 4 years ago | cyber-monk
    java.net.ConnectException: Connection refused]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Failed to retrieve RMIServer stub

    apache.org | 1 year ago
    java.net.ConnectException: Connection refused]
  6. 0

    IBM SI not working on DR system, activeMQ fails to start - United States

    ibm.com | 9 months ago
    java.net.ConnectException: Connection refused] at org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java :107) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java :57) at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxComman d.java:224) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)< br /> at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java :57)

    1 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. java.net.ConnectException

      Connection refused]

      at org.apache.activemq.console.command.ShutdownCommand.runTask()
    2. AMQ Console
      ShellCommand.main
      1. org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:116)
      2. org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
      3. org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
      4. org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
      5. org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
      6. org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:622)
      4 frames
    4. AMQ Console
      Main.main
      1. org.apache.activemq.console.Main.runTaskClass(Main.java:262)
      2. org.apache.activemq.console.Main.main(Main.java:115)
      2 frames