Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-8363

Exception in dstat in Offline ActiveMQ

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.11.1
    • Component/s: Broker
    • Labels:
      None

      Description

      We have observed that while running dstat command for server, we are getting exception. dstat command is used for monitoring the queues in ActiveMQ. Below is the exception printing.
      Commands : activemq-admin dstat

      ERROR:,java.lang.RuntimeException:,Failed,to,execute,dstat,task.
      java.net.ConnectException:,Connection,refused]
      java.lang.RuntimeException:,Failed,to,execute,dstat,task.,Reason:
      java.net.ConnectException:,Connection,refused]
      at,org.apache.activemq.console.command.DstatCommand.runTask(DstatCommand.java:81) ,
      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:606) ,
      at,org.apache.activemq.console.Main.runTaskClass(Main.java:262) ,
      at,org.apache.activemq.console.Main.main(Main.java:115) ,
      Caused,by:,java.io.IOException:,Failed,to,retrieve,RMIServer
      java.net.ConnectException:,Connection,refused]
      at,javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ,
      at,javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268) ,
      at,javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:227) ,
      at,org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnector(AbstractJmxCommand.java:279) ,
      at,org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnection(AbstractJmxCommand.java:302) ,
      at,org.apache.activemq.console.command.DstatCommand.displayAllDestinations(DstatCommand.java:90) ,
      at,org.apache.activemq.console.command.DstatCommand.runTask(DstatCommand.java:76) ,
      ...,11,more
      Caused,by:,javax.naming.ServiceUnavailableException,[Root,exception,is,java.rmi.ConnectException:
      java.net.ConnectException:,Connection,refused]
      at,com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) ,
      at,com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203) ,
      at,javax.naming.InitialContext.lookup(InitialContext.java:411) ,
      at,javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929) ,
      at,javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896) ,
      at,javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286) ,
      ...,17,more
      Caused,by:,java.rmi.ConnectException:,Connection,refused,to,host:
      java.net.ConnectException:,Connection,refused
      at,sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ,
      at,sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ,
      at,sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ,
      at,sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341) ,
      at,sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown,Source)
      at,com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114) ,
      ...,22,more
      Caused,by:,java.net.ConnectException:,Connection,refused
      at,java.net.PlainSocketImpl.socketConnect(Native,Method)
      at,java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ,
      at,java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ,
      at,java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ,
      at,java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ,
      at,java.net.Socket.connect(Socket.java:579) ,
      at,java.net.Socket.connect(Socket.java:528) ,
      at,java.net.Socket.<init>(Socket.java:425) ,
      at,java.net.Socket.<init>(Socket.java:208) ,
      at,sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) ,
      at,sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147) ,
      at,sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ,
      ...,27,more
      ERROR:,java.lang.Exception:,java.io.IOException:,Failed,to,retrieve,RMIServer
      java.net.ConnectException:,Connection,refused]
      java.lang.Exception:,java.io.IOException:,Failed,to,retrieve,RMIServer,stub:
      java.net.ConnectException:,Connection,refused]
      at,org.apache.activemq.console.command.DstatCommand.runTask(DstatCommand.java:82) ,
      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:606) ,
      at,org.apache.activemq.console.Main.runTaskClass(Main.java:262) ,
      at,org.apache.activemq.console.Main.main(Main.java:115) ,
      Caused,by:,java.io.IOException:,Failed,to,retrieve,RMIServer
      java.net.ConnectException:,Connection,refused]
      at,javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ,
      at,javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268) ,
      at,javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:227) ,
      at,org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnector(AbstractJmxCommand.java:279) ,
      at,org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnection(AbstractJmxCommand.java:302) ,
      at,org.apache.activemq.console.command.DstatCommand.displayAllDestinations(DstatCommand.java:90) ,
      at,org.apache.activemq.console.command.DstatCommand.runTask(DstatCommand.java:76) ,
      ...,11,more
      Caused,by:,javax.naming.ServiceUnavailableException,[Root,exception,is,java.rmi.ConnectException:
      java.net.ConnectException:,Connection,refused]
      at,com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) ,
      at,com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203) ,
      at,javax.naming.InitialContext.lookup(InitialContext.java:411) ,
      at,javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929) ,
      at,javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896) ,
      at,javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286) ,
      ...,17,more
      Caused,by:,java.rmi.ConnectException:,Connection,refused,to,host:
      java.net.ConnectException:,Connection,refused
      at,sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ,
      at,sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ,
      at,sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ,
      at,sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341) ,
      at,sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown,Source)
      at,com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114) ,
      ...,22,more
      Caused,by:,java.net.ConnectException:,Connection,refused
      at,java.net.PlainSocketImpl.socketConnect(Native,Method)
      at,java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ,
      at,java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ,
      at,java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ,
      at,java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ,
      at,java.net.Socket.connect(Socket.java:579) ,
      at,java.net.Socket.connect(Socket.java:528) ,
      at,java.net.Socket.<init>(Socket.java:425) ,
      at,java.net.Socket.<init>(Socket.java:208) ,
      at,sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) ,
      at,sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147) ,
      at,sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ,
      ...,27,more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vinod2261 Vinod Kumar VS

              Dates

              • Created:
                Updated:

                Issue deployment