我得到以下异常跟踪:
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:293)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:190)
我阅读了一些关于此的论坛,但没有弄清楚此异常的根本原因。这是由于以下原因之一吗?
- 内存不足。
- RMI 调用失败,原因是对服务器的请求数量增加,导致其中一个请求等待并导致此请求处理超时。
- 不兼容的 jre 版本或与 JRE 版本相关的任何内容。
- 任何与网络相关的问题。
- 防火墙相关。
最佳答案
- Insufficient memory.
不在客户端。可能在服务器上,如果它导致分配线程失败。
- RMI calls getting failed due to increased number of requests to the server causing one of them to wait and causing time outs for this request to process.
没有。错误发生在连接建立阶段,远在服务器端方法实现被调用之前。
- incompatible jre version or anything related to JRE version.
没有。
- Any networking related issue.
是的。
- Firewall related.
没有。这会导致连接超时,或者在某些过时的情况下会导致连接拒绝,而不是读取超时。
关于java - JRMP 连接建立错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14332154/