Help in running the sample code given in site.

Hi all,

I am new to RMI.I followed each line of the doc given and was able to successfully compile the files..

I started the rmiregistry in the folder where my code was present...

in my hostname field i gave localhost and the one given in the documentation.

i got this stacktrace...

ComputeEngine exception:

java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

java.net.SocketTimeoutException: Read timed out

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)

at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)

at engine.ComputeEngine.main(ComputeEngine.java:32)

Caused by: java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read(BufferedInputStream.java:235)

at java.io.DataInputStream.readByte(DataInputStream.java:241)

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)

Any idea why this is happening...Any remedies?

am in urgent need of a remedy..

if someone can give it i would be happy...

[1409 byte] By [PowerhorsePCa] at [2007-11-27 0:28:20]
# 1
strange... it looks like you can't connect to the registry that runs on the same machine (it does, right?). If you're using windows try disabling the firewall.
genadya at 2007-7-11 22:29:22 > top of Java-index,Core,Core APIs...