Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
Description
1) start a server with --server-port 40404
2) start a 2nd server without specifying --server-port or --disable-default-server but do specify --cache-xml containing a unique server port
3) start will fail due to assertAvailablePort
The error will look something like:
java.lang.RuntimeException: An IO error occurred while starting a Server in /dx2-office-dhcp32 on dx2-office-dhcp32[40404]: Network is unreachable; port (40404) is not available on localhost.
Work-around is to specify --disable-default-server in step #2. This will cause it to skip assertAvailablePort(40404).
I believe it's more intuitive to the user if we also make the change to skip assertAvailablePort(40404) if --cache-xml is specified when --server-port is not specified.