cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exception: isPortAvaiable() Error message in the log if we Merge module

Exception: isPortAvaiable() Error message in the log if we Merge module

Introduction

When running an installer on a Linux installation that does not have netstat installed the following exception reported in the installer log,
Exception: isPortAvaiable() : while get the available ip port Cannot run program "netstat": error=2, No such file or directory
java.io.IOException: Cannot run program "netstat": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at java.base/java.lang.Runtime.exec(Runtime.java:592)
at java.base/java.lang.Runtime.exec(Runtime.java:416)
at java.base/java.lang.Runtime.exec(Runtime.java:313)
at com.zerog.ia.installer.rmi.RmiServer.isPortAvaiable(Unknown Source)

Steps to solve the issue:
 The merge module needs to be configured to display its progress in the parent's progress, in absence of Netstat/net-tool in linux it will display the error message in the installer log.

1. Use the following command to install the netstat/net-tool package,
     apt-get install net-tools
2. Then Build and run the installer and check the log.


Outcome:
After Install the netstat/net-tool package in linux/Ubuntu, the exception will disappear in the log.

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎May 30, 2023 04:33 AM
Updated by:
Contributors