DevTest10.4 IAM error - Address already in use: bind /0:0:0:0:0:0:0:0:9990

Document ID : KB000118595
Last Modified Date : 11/04/2019
Show Technical Document Details
Issue:
After installing Devtest 10.4 in the machine IAM service is not coming up. 

IAM is starting and after a minute it is stopping. 

1:15:19,712 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service org.wildfly.management.http.extensible: org.jboss.msc.service.StartException in service org.wildfly.management.http.extensible: java.net.BindException: Address already in use: bind /0:0:0:0:0:0:0:0:9990 
at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:340) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748) 

11:15:19,853 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.default: Address already in use: bind /0:0:0:0:0:0:0:0:51112 
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:179) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748) 

11:15:19,868 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting 
11:15:20,415 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.undertow.listener.https: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.https: Address already in use: bind /0:0:0:0:0:0:0:0:51111 
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:179) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) 
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748)
Cause:
Ports were already in use: 

C:\Users\veyed>netstat -an | find "9990" 
TCP 0.0.0.0:9990 0.0.0.0:0 LISTENING 
TCP [::]:9990 [::]:0 LISTENING 

C:\Users\veyed>netstat -an | find "51112" 
TCP 0.0.0.0:51112 0.0.0.0:0 LISTENING 
TCP [::]:51112 [::]:0 LISTENING 

C:\Users\veyed>netstat -an | find "51111" 
TCP 0.0.0.0:51111 0.0.0.0:0 LISTENING 
TCP [::]:51111 [::]:0 LISTENING 
Resolution:
Rebooted machine and resolved issue.

Alternatively, in some cases it may be possible to identify the process that is still using one of the ports. 
On Windows, in task manager, check if there is a process similar to: 
"java" -Dprogram.name=standalone.bat -Djboss.http.port=51112 -Djboss.https.port=51111 ...
The command line can be shown in task manager by right clicking the header of the list of processes and ticking 'Command line'.
If this process is still there, right click and select 'End Task'.
After that it should be possible to restart IAM without a reboot.

java process