Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

RMI java.net.ConnectException: 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:

java.net.ConnectException: Connection timed out

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)

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

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

at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)

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

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2017
Added on Mar 7 2017
0 comments
1,246 views