Troubleshooting Client Server Connections

From Protege Wiki

Revision as of 09:29, August 4, 2009 by Tredmond (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is in the very early stages. It helps to look at the section documenting how the rmi connection is established just to understand the difference between successfully connecting to the rmiregistry and connecting to the server.

The first thing to do is to look at any messages on the console. The most fundamental error that can arise is the following exception

SEVERE: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection refused
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
	at sun.rmi.transport.tcp.TCPChannel.createConnection(
	at sun.rmi.transport.tcp.TCPChannel.newConnection(
	at sun.rmi.server.UnicastRef.newCall(
	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
	at java.rmi.Naming.lookup(
	at edu.stanford.smi.protege.server.ServerPanel.connectToHost(

Note that the exception happens when trying to call Naming.lookup. Usually the client will pop up a window that says Unable to Connect to Server. This means that the client could not connect to the rmiregistry. Possibly the rmiregistry is not running or there is a firewall or other network problem.

Personal tools