3 Replies Latest reply on Jan 1, 2011 4:11 PM by nickarls

    Error shutting down AS  6 node

    nickarls

      I tried creating two nodes and they started up fine, but when I try do shut them down with

       

      C:\Java\as\jboss-6.0.0.Final\bin>shutdown.bat --host=localhost --port=1099 -S
      Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stu
      b: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOExce
      ption: error during JRMP connection establishment; nested exception is:
              java.net.SocketException: Software caused connection abort: recv failed]
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:33
      8)
              at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
      ry.java:248)
              at org.jboss.Shutdown.main(Shutdown.java:235)
      Caused by: javax.naming.CommunicationException [Root exception is java.rmi.Conne
      ctIOException: error during JRMP connection establishment; nested exception is:
              java.net.SocketException: Software caused connection abort: recv failed]
              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
      :101)
              at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j
      ava:185)
              at javax.naming.InitialContext.lookup(InitialContext.java:392)
              at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnect
      or.java:1886)
              at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.j
      ava:1856)
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:25
      7)
              ... 2 more
      Caused by: java.rmi.ConnectIOException: error during JRMP connection establishme
      nt; nested exception is:
              java.net.SocketException: Software caused connection abort: recv failed
              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286
      )
              at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
              at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
              at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
      :97)
              ... 7 more
      Caused by: java.net.SocketException: Software caused connection abort: recv fail
      ed
              at java.net.SocketInputStream.socketRead0(Native Method)
              at java.net.SocketInputStream.read(SocketInputStream.java:129)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
              at java.io.DataInputStream.readByte(DataInputStream.java:248)
              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228
      )
              ... 11 more
      Press any key to continue . . .

      shutdown.bat --host=localhost --port=1099 -S

       

      I get a

       

      Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stu

      b: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOExce

      ption: error during JRMP connection establishment; nested exception is:

              java.net.SocketException: Software caused connection abort: recv failed]

       

              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:33

      8)

              at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto

      ry.java:248)

              at org.jboss.Shutdown.main(Shutdown.java:235)

      Caused by: javax.naming.CommunicationException [Root exception is java.rmi.Conne

      ctIOException: error during JRMP connection establishment; nested exception is:

       

              java.net.SocketException: Software caused connection abort: recv failed]

       

              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java

      :101)

              at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j

      ava:185)

              at javax.naming.InitialContext.lookup(InitialContext.java:392)

              at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnect

      or.java:1886)

              at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.j

      ava:1856)

              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:25

      7)

              ... 2 more

      Caused by: java.rmi.ConnectIOException: error during JRMP connection establishme

      nt; nested exception is:

              java.net.SocketException: Software caused connection abort: recv failed

              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286

      )

              at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)

              at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)

              at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java

      :97)

              ... 7 more

      Caused by: java.net.SocketException: Software caused connection abort: recv fail

      ed

              at java.net.SocketInputStream.socketRead0(Native Method)

              at java.net.SocketInputStream.read(SocketInputStream.java:129)

              at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

              at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

              at java.io.DataInputStream.readByte(DataInputStream.java:248)

              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228

      )

              ... 11 more

       

       

      I tried telnetting to 1099 and the port responds. Win 7.

        • 1. Re: Error shutting down AS  6 node
          jaikiran

          Nicklas Karlsson wrote:

           

          I tried creating two nodes and they started up fine, but when I try do shut them down with

           

           

          C:\Java\as\jboss-6.0.0.Final\bin>shutdown.bat --host=localhost --port=1099 -S
          Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stu
          b: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOExce
          ption: error during JRMP connection establishment; nested exception is:
                  java.net.SocketException: Software caused connection abort: recv failed]
                  at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:33
          8)
                  at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
          ry.java:248)
                  at org.jboss.Shutdown.main(Shutdown.java:235)
          Caused by: javax.naming.CommunicationException [Root exception is java.rmi.Conne
          ctIOException: error during JRMP connection establishment; nested exception is:
                  java.net.SocketException: Software caused connection abort: recv failed]
                  at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
          :101)
                  at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j
          ava:185)
                  at javax.naming.InitialContext.lookup(InitialContext.java:392)
                  at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnect
          or.java:1886)
                  at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.j
          ava:1856)
                  at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:25
          7)
                  ... 2 more
          Caused by: java.rmi.ConnectIOException: error during JRMP connection establishme
          nt; nested exception is:
                  java.net.SocketException: Software caused connection abort: recv failed
                  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286
          )
                  at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
                  at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
                  at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
                  at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
          :97)
                  ... 7 more
          Caused by: java.net.SocketException: Software caused connection abort: recv fail
          ed
                  at java.net.SocketInputStream.socketRead0(Native Method)
                  at java.net.SocketInputStream.read(SocketInputStream.java:129)
                  at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
                  at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
                  at java.io.DataInputStream.readByte(DataInputStream.java:248)
                  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228
          )
                  ... 11 more
          Press any key to continue . . .

          shutdown.bat --host=localhost --port=1099 -S

           

          1099 appears to be the wrong port. The shutdown.sh --help shows this:

           

           

          jpai@jpai-laptop:bin$ ./shutdown.sh --help
          A JMX client to shutdown (exit or halt) a remote JBoss server.
          
          usage: shutdown [options] <operation>
          
          options:
              -h, --help                Show this help message (default)
              -D<name>[=<value>]        Set a system property
              --                        Stop processing options
              -s, --server=<url>        The JMX service URL of the remote server (e.g. service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi) 
              -o, --host=<HOSTNAME>     The name of the remote server (e.g. localhost) 
              -r, --port=<PORTNUMBER>   The rmiRegistryPort of the remote server (e.g. 1090) 
              -n, --serverName=<url>    Specify the JMX name of the ServerImpl
              -u, --user=<name>         Specify the username for authentication
              -p, --password=<name>     Specify the password for authentication
              -v, --verbose             Be noisy
          
          operations:
              -S, --shutdown            Shutdown the server
          
          for convenience, you can specify --host and --port but not with the --server=<url> which overrides host + port.
          

           

          So use:

           

          ./shutdown.sh --host=localhost --port=1090
          
          • 2. Re: Error shutting down AS  6 node
            smarlow

            You probably figured out the rest from what Jaikiran told you but just in case.  For the second server, you are probably using the conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml "Ports01Bindings" port numbers.

             

            As you now know, the first server running with default ports, could be shutdown with ./shutdown --shutdown --port=1090

             

            Using Ports01Bindings:  ./shutdown --shutdown --port=1190

             

            Using Ports02Bindings:  ./shutdown --shutdown --port=1290

             

            Using Ports03Bindings:  ./shutdown --shutdown --port=1390

            • 3. Re: Error shutting down AS  6 node
              nickarls

              Yep it was just a typo and I was thrown off by the fact that there was something responding on that port...