Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-657

can't run tests using the Arquillian Daemon when another application listens on port 12345

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.8
    • Fix Version/s: 2016.9
    • Component/s: core
    • Labels:
      None
    • Steps to Reproduce:
      1. start the HipChat client
      2. netstat -tlpn | grep 12345 # I see the "HipChat4" process listed
      3. mvn clean install

      Description

      On my laptop, a simple mvn clean install fails on the ArquillianTest with

      2016-09-05 08:59:54,708 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service wildfly.swarm.arquillian.daemon.runner: org.jboss.msc.service.StartException in service wildfly.swarm.arquillian.daemon.runner: Failed to start service
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
              ...
      Caused by: java.net.BindException: Address already in use
              at sun.nio.ch.Net.bind0(Native Method)
              ...
      

      This is caused by another application already listening on port 12345. In my case, that application is the HipChat client. Sorry, I can't just stop using it right now , so I need a way to change the Arquillian Daemon's port. There's TODO: allow overriding the default port? for that already in DaemonServiceActivator.DaemonService.start.

      A simple system property would work just fine IMHO.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lthon Ladislav Thon
                Reporter:
                lthon Ladislav Thon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: