sockets - RMI Client- Server: java.rmi.ConnectIOException: error during JRMP connection establishment -
i'm trying establish rmi client server connectivity client , server behind different nat/firewall using tcp hole punching mechanism. currently, connectivity between client , server using public ip , port "80". after tcp connection established retrieve stub info of rmiserver. also, netstat , see connection established.
but when trying read remote object i'm getting following exception
java.rmi.connectioexception: error during jrmp connection establishment; nested exception is: java.net.sockettimeoutexception: read timed out @ sun.rmi.transport.tcp.tcpchannel.createconnection(tcpchannel.java:293) @ sun.rmi.transport.tcp.tcpchannel.newconnection(tcpchannel.java:190)
on monitoring connectivity netstat, see tcp connection gets terminated , not stable. helpful if hints on how maintain or stable tcp connection.
thanks.
the timeout error indicates able open socket between client , server, socket not serviced in timely manner, closed , gave exception.
the last time happened me, happened because client not find correct class libraries in path. server attempted open socket, client went off looking class library , didn't find it, socket timed out.
double check class path of both client , server.
Comments
Post a Comment