1 2 Previous Next 20 Replies Latest reply on Dec 9, 2013 9:19 PM by hai_feng

    [AS7] jboss-cli remote access

    manolo567

      Hi,

       

      I want to be able to remotely administer my jboss as 7.1.1 from both local network as well as from host a from VPN.

       

      So, there is a host with jboss AS instance (standalone 7.1.1), which has 10.5.0.3 address in the VPN and 192.168.1.6 on my local network. It has Ubuntu 11.10

       

      When I try to connect from local host, everything works fine (no matter if i do jboss-cli connect to 10.5.0.3, 192.168.1.6 or localhost). Also, trying to connect from local network (not VPN, it has an address of 192.168.1.8) ends with success.

       

      But when I do it from another host from VPN (10.5.0.4 in this case), I get:

       

      connect 10.5.0.3

      The controller is not available at 10.5.0.3:9999

       

      and in the server's log:

       

      22:05:38,882 ERROR [org.jboss.remoting.remote.connection] (Remoting "master-host:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

       

      it fails after about 5 seconds, and log in trace mode shows something interesting:

       

      22:39:15,963 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Beginning select on sun.nio.ch.EPollSelectorImpl@2de3e7d2

      22:39:15,963 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" write-1) Selected on sun.nio.ch.EPollSelectorImpl@5e6e3fe4

      22:39:15,963 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" write-1) Beginning select on sun.nio.ch.EPollSelectorImpl@5e6e3fe4 (with timeout)

      22:39:20,566 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Selected on sun.nio.ch.EPollSelectorImpl@2de3e7d2

       

      So it waits for soething for 5 seconds, after which remote host disconnects:

       

      22:39:20,583 TRACE [org.jboss.modules] (Remoting "master-host:MANAGEMENT" read-1) Finding class org.xnio.nio.WorkerThread from Module "org.jboss.logmanager:main" from local module loader @52c05d3b (roots: /home/manolo/jboss-as-7.1.1.Final/modules)

      22:39:20,583 TRACE [org.jboss.modules] (Remoting "master-host:MANAGEMENT" read-1) Class org.xnio.nio.WorkerThread not found from Module "org.jboss.logmanager:main" from local module loader @52c05d3b (roots: /home/manolo/jboss-as-7.1.1.Final/modules)

      22:39:20,567 TRACE [org.jboss.remoting.remote.connection] (Remoting "master-host:MANAGEMENT" read-1) Connection error detail: java.io.IOException: Connection reset by peer

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

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

       


      So to sum up, I am able to do jboss-cli connect from localhost, from local network, but not from VPN.

       

      Here is my standalone.xml, only changed interfaces to 0.0.0.0

       

      <?xml version='1.0' encoding='UTF-8'?>

       

      <server xmlns="urn:jboss:domain:1.2">

          <extensions>

              <extension module="org.jboss.as.clustering.infinispan"/>

              <extension module="org.jboss.as.configadmin"/>

              <extension module="org.jboss.as.connector"/>

              <extension module="org.jboss.as.deployment-scanner"/>

              <extension module="org.jboss.as.ee"/>

              <extension module="org.jboss.as.ejb3"/>

              <extension module="org.jboss.as.jaxrs"/>

              <extension module="org.jboss.as.jdr"/>

              <extension module="org.jboss.as.jmx"/>

              <extension module="org.jboss.as.jpa"/>

              <extension module="org.jboss.as.logging"/>

              <extension module="org.jboss.as.mail"/>

              <extension module="org.jboss.as.naming"/>

              <extension module="org.jboss.as.osgi"/>

              <extension module="org.jboss.as.pojo"/>

              <extension module="org.jboss.as.remoting"/>

              <extension module="org.jboss.as.sar"/>

              <extension module="org.jboss.as.security"/>

              <extension module="org.jboss.as.threads"/>

              <extension module="org.jboss.as.transactions"/>

              <extension module="org.jboss.as.web"/>

              <extension module="org.jboss.as.webservices"/>

              <extension module="org.jboss.as.weld"/>

          </extensions>

          <management>

              <security-realms>

                  <security-realm name="ManagementRealm">

                      <authentication>

                          <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>

                      </authentication>

                  </security-realm>

                  <security-realm name="ApplicationRealm">

                      <authentication>

                          <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                      </authentication>

                  </security-realm>

              </security-realms>

              <management-interfaces>

                  <native-interface security-realm="ManagementRealm">

                      <socket-binding native="management-native"/>

                  </native-interface>

                  <http-interface security-realm="ManagementRealm">

                      <socket-binding http="management-http"/>

                  </http-interface>

              </management-interfaces>

          </management>

          <profile>

              <subsystem xmlns="urn:jboss:domain:logging:1.1">

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <formatter>

                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                  </console-handler>

                  <periodic-rotating-file-handler name="FILE">

                      <formatter>

                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <suffix value=".yyyy-MM-dd"/>

                      <append value="true"/>

                  </periodic-rotating-file-handler>

                  <logger category="com.arjuna">

                      <level name="WARN"/>

                  </logger>

                  <logger category="org.apache.tomcat.util.modeler">

                      <level name="WARN"/>

                  </logger>

                  <logger category="sun.rmi">

                      <level name="WARN"/>

                  </logger>

                  <logger category="jacorb">

                      <level name="WARN"/>

                  </logger>

                  <logger category="jacorb.config">

                      <level name="ERROR"/>

                  </logger>

                  <root-logger>

                      <level name="TRACE"/>

                      <handlers>

                          <handler name="CONSOLE"/>

                          <handler name="FILE"/>

                      </handlers>

                  </root-logger>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>

              <subsystem xmlns="urn:jboss:domain:datasources:1.0">

                  <datasources>

                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                          <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>

                          <driver>h2</driver>

                          <security>

                              <user-name>sa</user-name>

                              <password>sa</password>

                          </security>

                      </datasource>

                      <drivers>

                          <driver name="h2" module="com.h2database.h2">

                              <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

                  <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:ee:1.0"/>

              <subsystem xmlns="urn:jboss:domain:ejb3:1.2">

                  <session-bean>

                      <stateless>

                          <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                      </stateless>

                      <stateful default-access-timeout="5000" cache-ref="simple"/>

                      <singleton default-access-timeout="5000"/>

                  </session-bean>

                  <pools>

                      <bean-instance-pools>

                          <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                      </bean-instance-pools>

                  </pools>

                  <caches>

                      <cache name="simple" aliases="NoPassivationCache"/>

                      <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

                  </caches>

                  <passivation-stores>

                      <file-passivation-store name="file"/>

                  </passivation-stores>

                  <async thread-pool-name="default"/>

                  <timer-service thread-pool-name="default">

                      <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>

                  </timer-service>

                  <remote connector-ref="remoting-connector" thread-pool-name="default"/>

                  <thread-pools>

                      <thread-pool name="default">

                          <max-threads count="10"/>

                          <keepalive-time time="100" unit="milliseconds"/>

                      </thread-pool>

                  </thread-pools>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="hibernate">

                  <cache-container name="hibernate" default-cache="local-query">

                      <local-cache name="entity">

                          <transaction mode="NON_XA"/>

                          <eviction strategy="LRU" max-entries="10000"/>

                          <expiration max-idle="100000"/>

                      </local-cache>

                      <local-cache name="local-query">

                          <transaction mode="NONE"/>

                          <eviction strategy="LRU" max-entries="10000"/>

                          <expiration max-idle="100000"/>

                      </local-cache>

                      <local-cache name="timestamps">

                          <transaction mode="NONE"/>

                          <eviction strategy="NONE"/>

                      </local-cache>

                  </cache-container>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jca:1.1">

                  <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                  <bean-validation enabled="true"/>

                  <default-workmanager>

                      <short-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </short-running-threads>

                      <long-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </long-running-threads>

                  </default-workmanager>

                  <cached-connection-manager/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jmx:1.1">

                  <show-model value="true"/>

                  <remoting-connector/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jpa:1.0">

                  <jpa default-datasource=""/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:mail:1.0">

                  <mail-session jndi-name="java:jboss/mail/Default">

                      <smtp-server outbound-socket-binding-ref="mail-smtp"/>

                  </mail-session>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:naming:1.1"/>

              <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">

                  <properties>

                      <!-- Specifies the beginning start level of the framework -->

                      <property name="org.osgi.framework.startlevel.beginning">1</property>

                  </properties>

                  <capabilities>

                      <!-- modules registered with the OSGi layer on startup -->

                      <capability name="javax.servlet.api:v25"/>

                      <capability name="javax.transaction.api"/>

                      <!-- bundles started in startlevel 1 -->

                      <capability name="org.apache.felix.log" startlevel="1"/>

                      <capability name="org.jboss.osgi.logging" startlevel="1"/>

                      <capability name="org.apache.felix.configadmin" startlevel="1"/>

                      <capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>

                  </capabilities>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>

              <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                  <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>

              <subsystem xmlns="urn:jboss:domain:sar:1.0"/>

              <subsystem xmlns="urn:jboss:domain:security:1.1">

                  <security-domains>

                      <security-domain name="other" cache-type="default">

                          <authentication>

                              <login-module code="Remoting" flag="optional">

                                  <module-option name="password-stacking" value="useFirstPass"/>

                              </login-module>

                              <login-module code="RealmUsersRoles" flag="required">

                                  <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>

                                  <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>

                                  <module-option name="realm" value="ApplicationRealm"/>

                                  <module-option name="password-stacking" value="useFirstPass"/>

                              </login-module>

                          </authentication>

                      </security-domain>

                      <security-domain name="jboss-web-policy" cache-type="default">

                          <authorization>

                              <policy-module code="Delegating" flag="required"/>

                          </authorization>

                      </security-domain>

                      <security-domain name="jboss-ejb-policy" cache-type="default">

                          <authorization>

                              <policy-module code="Delegating" flag="required"/>

                          </authorization>

                      </security-domain>

                  </security-domains>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:threads:1.1"/>

              <subsystem xmlns="urn:jboss:domain:transactions:1.1">

                  <core-environment>

                      <process-id>

                          <uuid/>

                      </process-id>

                  </core-environment>

                  <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                  <coordinator-environment default-timeout="300"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                  <virtual-server name="default-host" enable-welcome-root="true">

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                  </virtual-server>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:webservices:1.1">

                  <modify-wsdl-address>true</modify-wsdl-address>

                  <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>

                  <endpoint-config name="Standard-Endpoint-Config"/>

                  <endpoint-config name="Recording-Endpoint-Config">

                      <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">

                          <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                      </pre-handler-chain>

                  </endpoint-config>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:weld:1.0"/>

          </profile>

          <interfaces>

              <interface name="management">

                  <inet-address value="0.0.0.0"/>

              </interface>

              <interface name="public">

                  <inet-address value="0.0.0.0"/>

              </interface>

              <!-- TODO - only show this if the jacorb subsystem is added  -->

              <interface name="unsecure">

                  <!--

                    ~  Used for IIOP sockets in the standard configuration.

                    ~                  To secure JacORB you need to setup SSL

                    -->

                  <inet-address value="0.0.0.0"/>

              </interface>

          </interfaces>

          <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>

              <socket-binding name="ajp" port="8009"/>

              <socket-binding name="http" port="8080"/>

              <socket-binding name="https" port="8443"/>

              <socket-binding name="osgi-http" interface="management" port="8090"/>

              <socket-binding name="remoting" port="4447"/>

              <socket-binding name="txn-recovery-environment" port="4712"/>

              <socket-binding name="txn-status-manager" port="4713"/>

              <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="localhost" port="25"/>

              </outbound-socket-binding>

          </socket-binding-group>

      </server>

       

      Thanks in advance!

        • 1. Re: [AS7] jboss-cli remote access
          dlofthouse

          I would suggest obtaining some network traces of the successful and unsuccessful remote scenarios - initially from your description however it does sound more like an issue in your vpn set up not allowing the connection to be established but reviewing some traces should reveal more.

          • 2. Re: [AS7] jboss-cli remote access
            manolo567

            Hi Darran, thanks for answering.

            I tried to experiment with simpler setup today, but it also failed.

            I have a freshly virtual machine on my master host. Master's address is 192.168.122.1 and VM is 192.168.122.35 (standard ubuntu VM NAT networking, no bridging). There is a standard standalone AS instance on the master, with interfaces set to 0.0.0.0. I cannot connect through jboss-cli from VM.

            The trace log inside the AS is as follows:

             

             

            11:19:56,467 TRACE [org.xnio.listener] (Remoting "master-host:MANAGEMENT" read-1) Setting channel listener to org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener@70eea883

            11:19:56,468 TRACE [org.jboss.remoting.remote] (Remoting "master-host:MANAGEMENT" read-1) Accepted connection from /192.168.122.35:40747 to 192.168.122.1/192.168.122.1:9999

            11:19:56,468 TRACE [org.jboss.remoting.remote] (Remoting "master-host:MANAGEMENT" read-1) Setting read listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@44796a61

            11:19:56,469 TRACE [org.xnio.listener] (Remoting "master-host:MANAGEMENT" read-1) Setting channel listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@44796a61

            11:19:56,469 TRACE [org.xnio.nio] (Remoting "master-host:MANAGEMENT" read-1) Resume reads on TCP socket channel (NIO) <7bf77df3>

            11:19:56,469 TRACE [org.xnio.nio] (Remoting "master-host:MANAGEMENT" read-1) Setting operations of key sun.nio.ch.SelectionKeyImpl@356e1c1a of java.nio.channels.SocketChannel[connected local=192.168.122.1/192.168.122.1:9999 remote=/192.168.122.35:40747] to 01 (same thread)

            11:19:56,470 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Accepting java.nio.HeapByteBuffer[pos=0 lim=16 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]

            11:19:56,470 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Accepted a message into java.nio.HeapByteBuffer[pos=20 lim=8196 cap=8196]

            11:19:56,470 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3>

            11:19:56,471 TRACE [org.jboss.remoting.remote.connection] (Remoting "master-host:MANAGEMENT" read-1) Sent message java.nio.HeapByteBuffer[pos=16 lim=16 cap=8192] (direct)

            11:19:56,471 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3>

            11:19:56,471 TRACE [org.jboss.remoting.remote.connection] (Remoting "master-host:MANAGEMENT" read-1) Flushed channel (direct)

            11:19:56,471 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Beginning select on sun.nio.ch.EPollSelectorImpl@7f66ff9c

            11:19:56,472 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Selected on sun.nio.ch.EPollSelectorImpl@7f66ff9c

            11:19:56,472 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Selected key sun.nio.ch.SelectionKeyImpl@356e1c1a for java.nio.channels.SocketChannel[connected local=192.168.122.1/192.168.122.1:9999 remote=/192.168.122.35:40747]

            11:19:56,472 TRACE [org.xnio.listener] (Remoting "master-host:MANAGEMENT" read-1) Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3> on channel TCP socket channel (NIO) <7bf77df3>

            11:19:56,473 TRACE [org.xnio.listener] (Remoting "master-host:MANAGEMENT" read-1) Invoking listener org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@44796a61 on channel org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3>

            11:19:56,473 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Did not read a length

            11:19:56,474 TRACE [org.jboss.remoting.remote] (Remoting "master-host:MANAGEMENT" read-1) Received connection end-of-stream

            11:19:56,474 TRACE [org.xnio.channels.framed] (Remoting "master-host:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3>

            11:19:56,474 TRACE [org.xnio.nio.tcp.channel] (Remoting "master-host:MANAGEMENT" read-1) Closing TCP socket channel (NIO) <7bf77df3>

            11:19:56,474 TRACE [org.xnio.nio] (Remoting "master-host:MANAGEMENT" read-1) Cancelling key sun.nio.ch.SelectionKeyImpl@356e1c1a of java.nio.channels.SocketChannel[closed] (same thread)

            11:19:56,475 TRACE [org.xnio.nio] (Remoting "master-host:MANAGEMENT" read-1) Cancelling key sun.nio.ch.SelectionKeyImpl@4ff70a5d of java.nio.channels.SocketChannel[closed] (other thread)

            11:19:56,475 TRACE [org.xnio.listener] (Remoting "master-host:MANAGEMENT" read-1) Invoking listener Close listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3> on channel TCP socket channel (NIO) <7bf77df3>

            11:19:56,475 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" write-1) Selected on sun.nio.ch.EPollSelectorImpl@69c1f2c

            11:19:56,475 TRACE [org.xnio.safe-close] (Remoting "master-host:MANAGEMENT" read-1) Closing resource org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <7bf77df3>

            11:19:56,476 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" write-1) Beginning select on sun.nio.ch.EPollSelectorImpl@69c1f2c (with timeout)

            11:19:56,476 TRACE [org.xnio.safe-close] (Remoting "master-host:MANAGEMENT" read-1) Closing resource TCP socket channel (NIO) <7bf77df3>

            11:19:56,476 TRACE [org.xnio.nio.selector] (Remoting "master-host:MANAGEMENT" read-1) Beginning select on sun.nio.ch.EPollSelectorImpl@7f66ff9c

             

            EDIT: Added wireshark output of this single tryout:

             

            cap4.png

             

             

            any ideas? If there is any more information that I can provide, please let me know.

            • 3. Re: [AS7] jboss-cli remote access
              nibin012

              Hi,

               

              I am also facing the same issue. Tried to connect to a remote JBOSS 7 instance running in standalone mode using jboss cli shipped with JBOSS package. Any ideas on how to resolve the issue ?

              • 4. Re: [AS7] jboss-cli remote access
                manolo567

                I am inclined to think that there is a problem with my network (VPN in particular). I decided to postpone looking for solution since I am able to do development locally.

                In your case, please make sure that the following criteria is fulfilled:

                - Remote JBOSS instance is bound to an interface other than localhost (socket-binding section in standalone.xml)

                - Port 9999 is not blocked by the firewall on either of the machines

                - There is some user added to ManagementRealm in remote instance and you are providing the correct data.

                 

                If these are not the case, please provide some more info on what the output is and what your configuration is.

                • 5. Re: [AS7] jboss-cli remote access
                  kaioho

                  I am seeing this issue as well, works on localhost but doesnt work thru VPN.

                   

                  Although when i say it doesnt work i really mean it doesnt work always. Make me think if there is a timeout for this connection.

                   

                  If i do it once most likely it will fail, if i try again and again eventually i am able to connect.

                  • 6. Re: [AS7] jboss-cli remote access
                    ther25

                    I have similar issue.

                     

                    When I try to connect from windows machine to linux using jboss cli - connection is successfully established, when I try to connect from another linux machine I get "controller not available". All machines are located in the same network and no vpn is involved. Machine which I am trying to connect to is running in domain mode.

                     

                    At the same time when I start jboss on my linux machine (where I get "controller not available" from jboss-cli) as domain slave it successfully connects to controller machine.

                     

                    Machines involved:

                    Windows 7 32bit

                    2xUbuntu 10.04.4 LTS 64bit

                    • 7. Re: [AS7] jboss-cli remote access
                      ctomc

                      Yaro,

                       

                      can you stop the firewall and try again.

                       

                      you can do that by running command on your windows box

                       

                      net stop MpsSvc

                      and then try connecting to windows box again

                       

                      --

                      tomaz

                      • 8. Re: [AS7] jboss-cli remote access
                        ther25

                        Thanks for reply, I guess I didn't express myself clearly.

                         

                        X  Linux machine configured to be master

                        Y Linux machine configured to be slave

                        Z Windows machine - has no running jboss, only jboss-cli.bat is used to connect to linux machines

                         

                        1. Start X

                        2. Start Y (judging from the logs machine is connected, stats are available in web-console on X), so it able to connect to X

                        3. Try to open connection from Y to X via jboss-cli.sh, "controller not available" is received with the message, error log on Y says " JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer"

                        4. Try to open connection from Z to X via jboss-cli.bat - connection successful.

                         

                        Paradox is that Y is able to connect to X in domain mode, but not via jboss-cli.sh.

                        • 9. Re: [AS7] jboss-cli remote access
                          haribo

                          We can mostly confirm Yaro's

                           

                          Jboss 7.1.1

                           

                          X = vmware-instance: Debian 6, regardless of openjdk-6-jre or sun-6-jre, bind to 0.0.0.0, master

                          Y = clone of X with adjusted host.xml, slave

                          Z = my Windows 64-bit Machine with 1.6.0_20

                           

                          1. Start X - ok

                          2. Start Y

                          Log on Y:

                          11:49:12,109 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

                          11:49:12,204 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'

                          [Host Controller] 11:49:12,763 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

                          [Host Controller] 11:49:12,896 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

                          [Host Controller] 11:49:13,026 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                          [Host Controller] 11:49:13,655 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.3.GA

                          [Host Controller] 11:49:13,684 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.3.GA

                          [Host Controller] 11:49:13,691 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.3.GA

                          [Host Controller] 11:49:19,036 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.168.250.7:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.250.7:9999. The connection timed out

                          [Host Controller] 11:49:25,043 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.168.250.7:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.250.7:9999. The connection timed out

                          [Host Controller] 11:49:31,049 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.168.250.7:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.250.7:9999. The connection timed out

                          [Host Controller] 11:49:37,055 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.168.250.7:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.250.7:9999. The connection timed out

                          [Host Controller] 11:49:43,061 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.168.250.7:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.250.7:9999. The connection timed out

                          [Host Controller] 11:49:49,070 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010901: Could not connect to master. Aborting. Error was: java.lang.IllegalStateException: JBAS010951: Could not connect to master in 5 attempts within 30000 ms

                          [Host Controller] 11:49:54,190 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 5109ms

                          11:49:54,551 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99

                          11:49:54,554 INFO  [org.jboss.as.process] (Thread-8) JBAS012016: Shutting down process controller

                          11:49:54,554 INFO  [org.jboss.as.process] (Thread-8) JBAS012015: All processes finished; exiting

                           

                          Log on X:

                          [Host Controller] 11:49:49,096 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

                          [Host Controller] 11:49:49,109 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

                          [Host Controller] 11:49:49,111 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

                           

                          Caution: Only 3 Connections reset by peer and this logged on X AFTER Y log "Could not connect to master" and its 5 connection-attempts. Look for the timecode!

                           

                          3. Try to open connection from Y to X via jboss-cli.sh: The controller is not available at 192.168.250.7:9999, error log on X says [Host Controller] 11:44:17,615 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

                           

                          4. Try to open connection from Z to X via jboss-cli.bat - connection successful

                           

                          5. Try to open connection from X to X via jboss-cli.sh - connection successful

                           

                          @Yaro: how did you get your paradox work?

                           

                          EDIT: I just copy the domain/configuration folder to my windows machine, start domain.bat on windows, try jboss-cli.sh from X OK, from Y same problem

                           

                          EDIT: Sorry, my fault. I thought it was a full 1:1 clone, wasn't :-( I now cloned X again, make this clone Y to slave an now all works fine. Now i try found out, what was different on the old Y.

                           

                          Nachricht geändert durch Harald Hartmann

                          • 10. Re: [AS7] jboss-cli remote access
                            ctomc

                            Yaro & Harald,

                             

                            how do you connect from Y with CLI?

                             

                            As when you are running servers in domain mode, you can connect only to DC (master) and not to HC's(slaves)

                             

                            so you should allways be connecting to master from jboss-cli.

                             

                            This is only "issue" i see with your setup.

                            As i have tried to reproduce your issue with exact setup you have (except for centos for linux server instead of debian)

                             

                             

                            --

                            tomaz

                            • 11. Re: [AS7] jboss-cli remote access
                              haribo

                              Hello tomaz,

                              how do you connect from Y with CLI?

                               

                              from the vmware-instance doesn't work:

                               

                              root@jboss7-2:/jboss/bin# sh jboss-cli.sh

                              You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

                              [disconnected /] connect 192.168.250.7

                              The controller is not available at 192.168.250.7:9999

                              [disconnected /] version

                              JBoss Admin Command-line Interface

                              JBOSS_HOME: /jboss

                              JBoss AS release: <connect to the controller and re-run the version command to see the release info>

                              JAVA_HOME: null

                              java.version: 1.6.0_26

                              java.vm.vendor: Sun Microsystems Inc.

                              java.vm.version: 20.1-b02

                              os.name: Linux

                              os.version: 2.6.32-5-amd64

                               

                              root@jboss7-2:/jboss/bin# java -version

                              java version "1.6.0_26"

                              Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

                              Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

                               

                              The version info from the new created (master) clone, which now works fine:

                               

                              root@jboss7:/jboss/bin# sh jboss-cli.sh

                              You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

                              [disconnected /] connect 192.168.250.7

                              Authenticating against security realm: ManagementRealm

                              Username: Test

                              Password:

                              [domain@192.168.250.7:9999 /] version

                              JBoss Admin Command-line Interface

                              JBOSS_HOME: /jboss

                              JBoss AS release: 7.1.1.Final "Brontes"

                              JAVA_HOME: null

                              java.version: 1.6.0_18

                              java.vm.vendor: Sun Microsystems Inc.

                              java.vm.version: 14.0-b16

                              os.name: Linux

                              os.version: 2.6.32-5-amd64

                              [domain@192.168.250.7:9999 /]

                               

                               

                              root@jboss7:/jboss/bin# java -version

                              java version "1.6.0_18"

                              OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)

                              OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

                               

                              As when you are running servers in domain mode, you can connect only to DC (master) and not to HC's(slaves)

                              sure, for testing i had only the DC (master) running, the HC (slave) was down

                              • 12. Re: [AS7] jboss-cli remote access
                                haribo

                                ok, i now copied the whole jboss folder from X to the corrupted Y to except a misconfigurated jboss. the problem still exists :-(

                                so cause of "connection reset by peer" i already looked for network(interface) and iptables issues, but anything eye-catching.

                                the only difference i see were the different java versions. therefore i installed openjdk-6-jre like mentioned from above. without success: The controller is not available at 192.168.250.7:9999

                                also a telnet 192.168.250.7 9999 connect correctly. so for what can i look now?

                                • 13. Re: [AS7] jboss-cli remote access
                                  haribo

                                  Stacktrace of X (Master) connecting with jboss-cli.sh from (corrupted) Y:

                                   

                                  [Host Controller] 12:10:04,250 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Selected on sun.nio.ch.EPollSelectorImpl@5d684e26

                                  [Host Controller] 12:10:04,250 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Selected key sun.nio.ch.SelectionKeyImpl@69ce835b for sun.nio.ch.ServerSocketChannelImpl[/0.0.0.0:9999]

                                  [Host Controller] 12:10:04,250 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Invoking listener org.jboss.remoting3.remote.RemoteConnectionProvider$AcceptListener@37e80c87 on channel TCP server (NIO) <4f1c5c88>

                                  [Host Controller] 12:10:04,251 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Adding channel java.nio.channels.SocketChannel[connected local=/192.168.250.7:9999 remote=/192.168.250.9:42770] to Thread[Remoting "master:MANAGEMENT" read-1,5,main] for XNIO channel TCP socket channel (NIO) <6e00321> (same thread)

                                  [Host Controller] 12:10:04,251 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Adding channel java.nio.channels.SocketChannel[connected local=/192.168.250.7:9999 remote=/192.168.250.9:42770] to Thread[Remoting "master:MANAGEMENT" write-1,5,main] for XNIO channel TCP socket channel (NIO) <6e00321> (other thread)

                                  [Host Controller] 12:10:04,252 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" write-1) Selected on sun.nio.ch.EPollSelectorImpl@50f38cf0

                                  [Host Controller] 12:10:04,252 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" write-1) Running task org.xnio.nio.WorkerThread$SynchTask@6815ee24

                                  [Host Controller] 12:10:04,252 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" write-1) Beginning select on sun.nio.ch.EPollSelectorImpl@50f38cf0 (with timeout)

                                  [Host Controller] 12:10:04,252 TRACE [org.xnio.nio.tcp.server] (Remoting "master:MANAGEMENT" read-1) TCP server accepted connection

                                  [Host Controller] 12:10:04,253 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Setting channel listener to Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,253 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Setting channel listener to Write listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,254 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Setting channel listener to Close listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,254 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Created new framed message channel around TCP socket channel (NIO) <6e00321>, receive buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196], transmit buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]

                                  [Host Controller] 12:10:04,255 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Setting channel listener to org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener@f8db08

                                  [Host Controller] 12:10:04,256 TRACE [org.jboss.remoting.remote] (Remoting "master:MANAGEMENT" read-1) Accepted connection from /192.168.250.9:42770 to 192.168.250.7/192.168.250.7:9999

                                  [Host Controller] 12:10:04,257 TRACE [org.jboss.remoting.remote] (Remoting "master:MANAGEMENT" read-1) Setting read listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@51f3eab7

                                  [Host Controller] 12:10:04,257 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Setting channel listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@51f3eab7

                                  [Host Controller] 12:10:04,257 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Resume reads on TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,257 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Setting operations of key sun.nio.ch.SelectionKeyImpl@5ced6f0d of java.nio.channels.SocketChannel[connected local=192.168.250.7/192.168.250.7:9999 remote=/192.168.250.9:42770] to 01 (same thread)

                                  [Host Controller] 12:10:04,257 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Accepting java.nio.HeapByteBuffer[pos=0 lim=16 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]

                                  [Host Controller] 12:10:04,258 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Accepted a message into java.nio.HeapByteBuffer[pos=20 lim=8196 cap=8196]

                                  [Host Controller] 12:10:04,258 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,258 TRACE [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) Sent message java.nio.HeapByteBuffer[pos=16 lim=16 cap=8192] (direct)

                                  [Host Controller] 12:10:04,258 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:04,258 TRACE [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) Flushed channel (direct)

                                  [Host Controller] 12:10:04,259 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Beginning select on sun.nio.ch.EPollSelectorImpl@5d684e26

                                  [Host Controller] 12:10:09,252 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Selected on sun.nio.ch.EPollSelectorImpl@5d684e26

                                  [Host Controller] 12:10:09,252 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Selected key sun.nio.ch.SelectionKeyImpl@5ced6f0d for java.nio.channels.SocketChannel[connected local=192.168.250.7/192.168.250.7:9999 remote=/192.168.250.9:42770]

                                  [Host Controller] 12:10:09,252 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321> on channel TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,252 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Invoking listener org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@51f3eab7 on channel org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,253 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.FileDispatcher from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,254 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.FileDispatcher not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,254 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.FileDispatcher from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,254 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.FileDispatcher not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,255 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.SocketDispatcher from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,255 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.SocketDispatcher not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,255 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.SocketDispatcher from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,255 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.SocketDispatcher not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,256 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.IOUtil from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,256 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.IOUtil not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,257 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.IOUtil from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,257 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.IOUtil not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,257 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.SocketChannelImpl from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,258 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.SocketChannelImpl not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,258 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class sun.nio.ch.SocketChannelImpl from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,258 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class sun.nio.ch.SocketChannelImpl not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,259 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.AbstractNioStreamChannel from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,259 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.AbstractNioStreamChannel not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,259 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.AbstractNioStreamChannel from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,259 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.AbstractNioStreamChannel not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,260 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.NioHandle from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,260 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.NioHandle not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,261 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.NioHandle from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,261 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.NioHandle not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,261 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.WorkerThread from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,262 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.WorkerThread not found from Module "org.jboss.as.remoting:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,262 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Finding class org.xnio.nio.WorkerThread from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,262 TRACE [org.jboss.modules] (Remoting "master:MANAGEMENT" read-1) Class org.xnio.nio.WorkerThread not found from Module "org.jboss.logmanager:main" from local module loader @48ee22f7 (roots: /jboss/modules)

                                  [Host Controller] 12:10:09,253 TRACE [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) Connection error detail: java.io.IOException: Connection reset by peer

                                  [Host Controller]       at sun.nio.ch.FileDispatcher.read0(Native Method) [rt.jar:1.6.0_26]

                                  [Host Controller]       at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) [rt.jar:1.6.0_26]

                                  [Host Controller]       at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202) [rt.jar:1.6.0_26]

                                  [Host Controller]       at sun.nio.ch.IOUtil.read(IOUtil.java:175) [rt.jar:1.6.0_26]

                                  [Host Controller]       at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243) [rt.jar:1.6.0_26]

                                  [Host Controller]       at org.xnio.nio.AbstractNioStreamChannel.read(AbstractNioStreamChannel.java:249)

                                  [Host Controller]       at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:88) [xnio-api-3.0.3.GA.jar:3.0.3.GA]

                                  [Host Controller]       at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:206) [jboss-remoting-3.2.3.GA.jar:3.2.3.GA]

                                  [Host Controller]       at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:121) [jboss-remoting-3.2.3.GA.jar:3.2.3.GA]

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

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

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

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

                                  [Host Controller]       at org.xnio.nio.NioHandle.run(NioHandle.java:90)

                                  [Host Controller]       at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)

                                  [Host Controller]

                                  [Host Controller] 12:10:09,263 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

                                  [Host Controller] 12:10:09,279 TRACE [org.xnio.safe-close] (Remoting "master:MANAGEMENT" read-1) Closing resource org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,279 TRACE [org.xnio.channels.framed] (Remoting "master:MANAGEMENT" read-1) Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,279 TRACE [org.xnio.nio.tcp.channel] (Remoting "master:MANAGEMENT" read-1) Closing TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,280 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Cancelling key sun.nio.ch.SelectionKeyImpl@5ced6f0d of java.nio.channels.SocketChannel[closed] (same thread)

                                  [Host Controller] 12:10:09,280 TRACE [org.xnio.nio] (Remoting "master:MANAGEMENT" read-1) Cancelling key sun.nio.ch.SelectionKeyImpl@77c5b2de of java.nio.channels.SocketChannel[closed] (other thread)

                                  [Host Controller] 12:10:09,281 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" write-1) Selected on sun.nio.ch.EPollSelectorImpl@50f38cf0

                                  [Host Controller] 12:10:09,281 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" write-1) Beginning select on sun.nio.ch.EPollSelectorImpl@50f38cf0 (with timeout)

                                  [Host Controller] 12:10:09,281 TRACE [org.xnio.listener] (Remoting "master:MANAGEMENT" read-1) Invoking listener Close listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321> on channel TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,281 TRACE [org.xnio.safe-close] (Remoting "master:MANAGEMENT" read-1) Closing resource org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,282 TRACE [org.xnio.safe-close] (Remoting "master:MANAGEMENT" read-1) Closing resource TCP socket channel (NIO) <6e00321>

                                  [Host Controller] 12:10:09,282 TRACE [org.xnio.nio.selector] (Remoting "master:MANAGEMENT" read-1) Beginning select on sun.nio.ch.EPollSelectorImpl@5d684e26

                                  • 14. Re: [AS7] jboss-cli remote access
                                    ctomc

                                    Hey,

                                     

                                    I can only think of one more thing, can use try using sun(oracle)'s jdk 6 update 20+ (anything after 20 is ok) on all servers.

                                     

                                    if that fails, can you try with latest nightly build https://community.jboss.org/thread/167590

                                    as there ware same changes post 7.1.1 (mostly also present in 7.1.2) in this area.

                                     

                                     

                                    --

                                    tomaz

                                    1 2 Previous Next