Skip to Main Content

Java APIs


For appeals, questions and feedback about Oracle Forums, please email Please ask technical questions in the appropriate category. Thank you!

RMI Connection timed out

2977838Mar 7 2017

Whenever rmi is trying to connect on  port 50042

We are getting

Fetching services in RMI registry at host localhost at port 50042

java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection timed out

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.list(Unknown Source)

Would like to know what might be the probable causes for this exception.

Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2017
Added on Mar 7 2017