Getting the "java.rmi.AlreadyBoundException" error when trying to start the MDM node.

Getting the "java.rmi.AlreadyBoundException" error when trying to start the MDM node.

book

Article ID: KB0075427

calendar_today

Updated On:

Products Versions
TIBCO MDM -

Description

This error comes when there are more than one MDM node is running i.e the Port 57571(default RMI registry port for JMX. ) is already begin used by another object that's why during startup MDM is throwing below error:
====
ERROR com.tibco.mdm.admin.hotdeployment.JmxHotdeploymentService - +++++ Could not initialize JMX Hot Deployment Service. Root cause:java.io.IOException: Cannot bind to URL [rmi://10.204.79.101:57571/Member1]: javax.naming.NameAlreadyBoundException: Member1 [Root exception is java.rmi.AlreadyBoundException: Member1]
====

So to resolve this issue, need to set the different port for JMX. 

Note: In MDM we have offset functionality, it used to change the port value if we have multiple MDM nodes running. But the hot deployment port(JMX Port) value will not be changed by offset configuration because it's configured in code.
 

Environment

Product: TIBCO MASTER DATA MANAGEMENT Version: 9.1.0 or higher OS:ALL

Resolution

To resolve java.rmi.AlreadyBoundException exception/ or to tell MDM to use different port for JMX. Please set the below JVM argument in standalone.conf.bat file:

====
rem # set the JMX PORT
set "JAVA_OPTS=%JAVA_OPTS% -DCIM_HOTDEPLOYMENTSERVICE_PORT=ANY_PORT"

Where ANY_PORT means give port no which is not used by another object.\

For Example
set "JAVA_OPTS=%JAVA_OPTS% -DCIM_HOTDEPLOYMENTSERVICE_PORT=25000"
====

 

Issue/Introduction

Getting the "java.rmi.AlreadyBoundException" error when trying to start the MDM node.