加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

java – JRMP连接建立时出错

发布时间:2020-12-15 03:11:00 所属栏目:Java 来源:网络整理
导读:我正在跟踪异常跟踪: 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
我正在跟踪异常跟踪:
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版本相关的任何内容.
>任何与网络相关的问题.
>防火墙相关.

解决方法

  1. Insufficient memory.

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

  1. 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.

否.错误发生在连接建立阶段,早在调用服务器端方法实现之前.

  1. incompatible jre version or anything related to JRE version.

没有.

  1. Any networking related issue.

是.

  1. Firewall related.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读