NetConnectException: Connection refused on port 4130
Port conflict on DE results in Connection refused error message.
" Caused by: org.apache.derby.client.am.DisconnectException:java.net.ConnectException :
Error opening socket to server localhost on port 4130 with message : Connection refused "
In the case where there are multiple instances of DE on a server and
one of those instances is DE version 1.3.x.x and one is DE version 1.4.x.x.
The latter version can adjust port selection on startup while the former
version cannot. This provides the conditions for port conflict on some
ITNM IP 3.8 and 3.9
Diagnosing the problem
Check the ACUApplication.properties file and the Derby.properties file.
Resolving the problem
Change the port used for the older DE version with the following procedure.
Note: DE uses port 4130 by default.
The following process will allow you to change the port value for DE.
In /home/<username>/.acsi_<username>/ACUApplication.properties file set
acu.urlprefix= jdbc\:derby\://localhost\:<desired portnumber>
(Default : acu.urlprefix=jdbc\:derby\://localhost\:4130)
In Derby.properties file set derby.drda.portNumber=<desired portnumber>
Example: Steps to change the portValue to 4131
Navigate to <DE common-location>* and open
In /home/tbsm/.acsi_tbsm/ACUApplication.properties file, set
Save and exit.
Go to <DE install-location>*/repos and open Derby.properties file
In Derby.properties file set derby.drda.portNumber=4131
Save and exit.