RMI: java.net.ConnectException

We have an application that uses RMI with iPlanet Web

Server. We are trying to move the application to the

Portal Server but couldn't get the RMI to work. I'm

wondering if someone can point out what needs to be

done. Our developmental system is Ultra 10 /Solaris 8.

All components of the Portal system and the RMI are

running on this machine.

Here is the error message on the Java Console:

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)

at java.net.Socket.<init>(Socket.java:273)

at java.net.Socket.<init>(Socket.java:100)

at sun.net.NetworkClient.doConnect(NetworkClient.java:50)

at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(HttpClient.java:97)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:335)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:271)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:232)

at sun.plugin.protocol.jdk12.http.HttpClient.<init>(HttpClient.java:57)

at sun.plugin.protocol.jdk12.http.HttpClient.New(HttpClient.java:69)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.privBlock(HttpURLConnection.ja va:113)

at sun.plugin.protocol.jdk12.http.HttpURLConnection$PrivilegedBlockAction.run(Http URLConnection.java:402)

at java.security.AccessController.doPrivileged(Native Method)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(HttpURLConnection.java :148)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(HttpURLConnecti on.java:321)

at rowSelApplet$MyTableModel.fetch_data(rowSelApplet.java:454)

at rowSelApplet.init(rowSelApplet.java:35)

at sun.applet.AppletPanel.run(AppletPanel.java:344)

at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:127)

at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:123)

at java.lang.Thread.run(Thread.java:484)

Thanks much.

- Rao

[2378 byte] By [708898] at [2007-11-25 4:35:36]
# 1

Probably the Socket Exceptions are raised when a connection is refused at the remote host. It seems as if the server might be down, or that the listening port is not open. Check with the following command..

#netstat -an | grep <port_number>

Also make sure that when RMIRegistry is started, the CLASSPATH setting should include the RMI stub classes.

Thanks,

Raj_indts

Developer Technical Support

Sun Microsystems

http://www.sun.com/developers/support

708766 at 2007-6-29 2:47:57 > top of Java-index,Web & Directory Servers,Portal Servers...