Multiple UAF Servers on the Same Computer

Executing multiple UAF servers on the same computer causes the Replication Monitoring Services (RMS) to report inconsistent and false server status.

Symptom

At UAF server start-up, the RMS generates this message if a UAF server is already running:
2006-03-10 12:57:16,520 INFO [main] RMIService(136) -
Starting RMI Service...
2006-03-10 12:57:16,629 ERROR [RMIRegistryThread]
RMIRegistryServiceStarter(34)- Failed to start rmi
registry. java.rmi.server.ExportException: Port already in use: 9999;
nested exception is: java.net.BindException: Address already in use at
sun.rmi.transport.tcp.TCPTransport.listen
(UnknownSource) at
sun.rmi.transport.tcp.TCPTransport.exportObject
(Unknown Source) at
sun.rmi.transport.tcp.TCPEndpoint.exportObject
(Unknown Source) at
sun.rmi.transport.LiveRef.exportObject
(Unknown Source) at
sun.rmi.server.UnicastServerRef.exportObject
(Unknown Source) at
sun.rmi.registry.RegistryImpl.setup(Unknown Source) at
sun.rmi.registry.RegistryImpl.<init>
(Unknown Source) at
java.rmi.registry.LocateRegistry.createRegistry
(Unknown Source) at
com.sybase.ua.services.rmi.RMIRegistryServiceStarter.
run(RMIRegistryServiceStarter.java:28)
Caused by: java.net.BindException: Address already in
use at java.net.PlainSocketImpl.socketBind
(Native Method) at
java.net.PlainSocketImpl.bind(Unknown Source) at
java.net.ServerSocket.bind(Unknown Source) at
java.net.ServerSocket.<init>(Unknown Source) at
java.net.ServerSocket.<init>(Unknown Source) at
sun.rmi.transport.proxy.RMIDirectSocketFactory.
createServerSocket(Unknown Source) at
sun.rmi.transport.proxy.RMIMasterSocketFactory.
createServerSocket(Unknown Source) at
sun.rmi.transport.tcp.TCPEndpoint.newServerSocket
(Unknown Source) ... 9 more
2006-03-10 12:57:17,799 ERROR [main] RMIService(142) - 
Failed to start RMI
Connector server. java.io.IOException: Cannot bind to
URL [rmi://abonner-sun:9999/agent]:
javax.naming.NameAlready BoundException: agent
[Root exception is java.rmi.AlreadyBoundException:
agent]

Explanation

Only one UAF server can run on a computer.

Action

Reinstall the RMS into the existing UAF installation.