JRMP连接建立错误 [英] error with JRMP connection establishment
本文介绍了JRMP连接建立错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在跟踪异常跟踪:
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)
我在这上面阅读了一些论坛但没有清楚了解此异常的根本原因。这是由于以下原因之一吗?
I read some forums on this but not getting clarity on the root cause of this exception. Is this due to one of the following reasons?
- 内存不足。
- 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.
推荐答案
- 内存不足。
不在客户端。可能在服务器上,如果它导致分配线程失败,例如。
Not at the client. Possibly at the server, if it causes a failure to allocate a thread for example.
- 由于对服务器的请求数量增加导致RMI调用失败,导致其中一个请求等待并导致此请求超时。
没有。在连接建立阶段,错误发生在服务器端方法实现被调用之前很久。
No. The error occurs during the connection establishment phase, long before the server-side method implementation gets invoked.
- 不兼容的jre版本或与JRE版本相关的任何内容。
No。
- 任何与网络相关的问题。
是。
- 防火墙相关。
否。这会导致连接超时,或者在某些过时的情况下会导致连接拒绝,而不是读取超时。
No. That would cause a connect timeout, or in certain obsolete cases a connection refusal, not a read timeout.
这篇关于JRMP连接建立错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文