File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes rmi--about socket factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi--about socket factory" Watch "rmi--about socket factory" New topic

rmi--about socket factory

dragon ji
Ranch Hand

Joined: Oct 31, 2002
Posts: 110
I did a test following this guide
when I did it in one machine(Windows),it was ok,but when I move the client into another machine(UNIX),it report:
HelloClient exception: Connection refused to host:; nested exception is: Connection refused
java.rmi.ConnectException: Connection refused to host:; 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 rmisocfac.HelloClient.main(
Caused by: Connection refused
at Method)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
... 5 more

the is the client's ip address.
I don't know why?please help me?what shall I do?thanx.

scjp 1.4<br />challenge haven't limit!
Diego Bowen
Ranch Hand

Joined: Aug 19, 2003
Posts: 50
Hello did you ever get this resolved i'm have a similar problem: ConnectException related to my lookup() call. Any help would be appreciated...thanks
I agree. Here's the link:
subject: rmi--about socket factory
It's not a secret anymore!