Name
ConnectException
Where thrown
In the RMI infrastructure on the client side.
When thrown
As part of the standard distributed communication between client and server. The client has tried to connect with the server but has been unable to establish a connection.
Why thrown
This is thrown by the RMI infrastructure on the client when a call
fails. A ConnectException
means the server object
never got the method call at all.
What it means
If the network is working (e.g., if you can ping the server machine from the client machine), this exception usually means that the server isn’t running (e.g., it crashed or was never started). Otherwise, it indicates a network failure.
Get Java Enterprise Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.