JRMP连接建立错误 [英] error with JRMP connection establishment

查看:140
本文介绍了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?


  1. 内存不足。

  2. RMI调用失败由于对服务器的请求数量增加导致其中一个请求等待并导致此请求处理超时。

  3. 不兼容的jre版本或与JRE版本相关的任何内容。

  4. 任何与网络相关的问题。

  5. 防火墙相关。

  1. Insufficient memory.
  2. 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.
  3. Incompatible jre version or anything related to JRE version.
  4. Any networking related issue.
  5. Firewall related.


推荐答案



  1. 内存不足。


不在客户端。可能在服务器上,如果它导致分配线程失败,例如。

Not at the client. Possibly at the server, if it causes a failure to allocate a thread for example.



  1. 由于对服务器的请求数量增加导致RMI调用失败,导致其中一个请求等待并导致此请求超时。


没有。在连接建立阶段,错误发生在服务器端方法实现被调用之前很久。

No. The error occurs during the connection establishment phase, long before the server-side method implementation gets invoked.



  1. 不兼容的jre版本或与JRE版本相关的任何内容。


No。



  1. 任何与网络相关的问题。


是。



  1. 防火墙相关。


否。这会导致连接超时,或者在某些过时的情况下会导致连接拒绝,而不是读取超时。

No. That would cause a connect timeout, or in certain obsolete cases a connection refusal, not a read timeout.

这篇关于JRMP连接建立错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆