[Universal Messaging]Unable to connect the Realm in Universal Messaging

Hi,

I want to get the Realm node of UM server through Java Admin API but the API through an following error

Stacktrace:

com.pcbsys.nirvana.client.nSessionNotConnectedException: The session is not currently connected to the server. Unable to perform the request:Session with the Realm has been disconnected

My Java Code Snippet is

nSessionAttributes attr = new nSessionAttributes(new String[] { “nsp://127.0.0.1:9000” });
nRealmNode node = new nRealmNode(attr);

My UM server is running and Realm is also connected.

Regards
Junaid