2 Replies Latest reply on Feb 6, 2012 5:25 AM by chrigel

    NumberFormatException with Arquillian 1.0.0.Alpha5 and JBoss 5.1.0.GA

    chrigel

      Hello

       

      I'm trying to get run a simple demo application with Arquillian 1.0.0.Apha5 and JBoss 5.1.0.GA (remote).

      All is working perfect until I get a NumberFormatException during the test execution.

       

      That means that Arquillian could successfully deploy the test-EAR to my remote JBoss. Then, Arquillian tries to execute the deployed test. That fails with the following exception (refer to the attached file for the full stack trace):

      org.jboss.arquillian.spi.client.container.DeploymentException: Could not extract deployment metadata

      at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.deploy(JBossASRemoteContainer.java:128)

      at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:141)

      ...

      Caused by: java.lang.NumberFormatException: For input string: "http-8080"

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

      at java.lang.Integer.parseInt(Integer.java:449)

      at java.lang.Integer.parseInt(Integer.java:499)

      at org.jboss.arquillian.container.jbossas.remote_5_1.ManagementViewParser.extractHTTPContext(ManagementViewParser.java:72)

      at org.jboss.arquillian.container.jbossas.remote_5_1.ManagementViewParser.parse(ManagementViewParser.java:49)

      at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.deploy(JBossASRemoteContainer.java:124)

       

      I'm not shure, but I think the ManagementViewParser wants to parse the port number. In my case, it should be "8080", but it seems to be "http-8080".

      Has anyone an idea how I can resolve this problem?

       

      Thanks a lot!