2 Replies Latest reply on Oct 20, 2013 10:27 PM by Yaguo Zhou

    Can't connect to JBoss AS 7 server using $JBOSS_HOME/bin/jconsole.bat on Windows client machine

    Yaguo Zhou Newbie

      Hi:

        I set up a JBoss AS 7.2.0.Final instance on a server machine. After reading the article Using jconsole to connect to JMX on AS7 , i have already connected to the server instance successfully on a linux client machine and a macbook-air through $JBOSS_HOME/bin/jconsole.sh, but i failed on a Windows client machine. Error in server.log is as follows:

      2013-10-19 20:52:02,264 TRACE [org.jboss.remoting.remote] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) Accepted connection from /192.168.1.100:50067 to 192.168.1.103/192.168.1.103:11001

      2013-10-19 20:52:02,265 TRACE [org.jboss.remoting.remote] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) Setting read listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@1e12aac

      2013-10-19 20:52:02,265 TRACE [org.jboss.remoting.remote.connection] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) Sent message java.nio.HeapByteBuffer[pos=16 lim=16 cap=8192] (direct)

      2013-10-19 20:52:02,265 TRACE [org.jboss.remoting.remote.connection] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) Flushed channel (direct)

      2013-10-19 20:52:07,279 TRACE [org.jboss.remoting.remote.connection] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) Connection error detail: java.io.IOException: Connection reset by peer

        at sun.nio.ch.FileDispatcher.read0(Native Method) [classes.jar:1.6.0_37]

        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) [classes.jar:1.6.0_37]

        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198) [classes.jar:1.6.0_37]

        at sun.nio.ch.IOUtil.read(IOUtil.java:171) [classes.jar:1.6.0_37]

        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245) [classes.jar:1.6.0_37]

        at org.xnio.nio.AbstractNioStreamChannel.read(AbstractNioStreamChannel.java:249)

        at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:87) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:217) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

        at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:131) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.nio.NioHandle.run(NioHandle.java:90)

        at org.xnio.nio.WorkerThread.run(WorkerThread.java:187)

       

       

      2013-10-19 20:52:07,281 ERROR [org.jboss.remoting.remote.connection] (Remoting "zygtekimacbook-air:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

      Messages captured with wireshark show that it seems like client sent a reset to the server side.

       

      Any ideas?

      Regards.