4 Replies Latest reply on Jan 22, 2014 10:10 AM by Robert Panzer

    Problems with Arquillian & Wildfly when using port offset

    Robert Panzer Newbie

      Hi,

       

      I am just trying to run my tests that are already running on JBoss AS 7.2.0 on Wildfly CR1 using the managed container adapter.

      When I start Wildfly with the default port setup the application is correctly deployed and the tests are run.

       

      But when I start wildfly with a port offset using the following command I get an EOFException with message: XNIO000812: Connection closed unexpectedly.

      standalone.bat --server-config=standalone-full.xml -Djboss.socket.binding.port-offset=20000

       

      I just changed the dependency on the JBossAS Container Adapter to the wildfly container adapter:

              <dependency org="org.jboss.as" name="jboss-as-arquillian-container-managed" rev="7.2.0.Final" conf="test-jboss-as-7->default(*)"/>

      ->

             <dependency org="org.wildfly" name="wildfly-arquillian-container-managed" rev="8.0.0.CR1" conf="test-jboss-as-7->default(*)"/>

       

      I use the servlet protocol:

              <dependency org="org.jboss.arquillian.protocol" name="arquillian-protocol-servlet" rev="1.1.2.Final" conf="test->default(*)"/>

       

      The base arquillian deps are also 1.1.2.Final.

       

      I left the arquillian.xml unchanged.

       

      The stack trace of the exception is this:

      Caused by: java.io.EOFException: XNIO000812: Connection closed unexpectedly

        at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:296)

        at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:279)

        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)

        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)

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

        at ...asynchronous invocation...(Unknown Source)

        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)

        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)

        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)

        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)

        at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:80)

        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:99)

        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)

        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)

        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)

        at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:148)

        at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:67)

        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:117)

        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:92)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeAsync(AbstractModelControllerClient.java:101)

        at org.jboss.as.controller.client.helpers.standalone.impl.ModelControllerClientServerDeploymentManager.executeOperation(ModelControllerClientServerDeploymentManager.java:50)

        at org.jboss.as.controller.client.helpers.standalone.impl.AbstractServerDeploymentManager.execute(AbstractServerDeploymentManager.java:79)

        at org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy(ServerDeploymentHelper.java:54)

        at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:77)

       

      Anyone else experiencing the same problem?

       

      Kind regards,

      Robert