RMI调用异常
org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [rmi://10.78.23.201:1099/matchServerApi]; nested exception is java.rmi.ConnectException: Connection refused to host: 17.31.2.3; nested exception is:
java.net.ConnectException: Connection timed out (Connection timed out)
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.convertRmiAccessException(RmiClientInterceptorUtils.java:190) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:347) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.remoting.rmi.RmiClientInterceptor.refreshAndRetry(RmiClientInterceptor.java:330) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.remoting.rmi.RmiClientInterceptor.handleRemoteConnectFailure(RmiClientInterceptor.java:306) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:262) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) ~[spring-aop-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at com.sun.proxy.$Proxy67.getUserTotalEntryFee(Unknown Source) ~[?:?]
at com.yj.tr.gds.api.game.server.impl.v2.UserTotalWinlossApiImpl.findByConditi
注意 nested exception 明确说明是嵌套异常
也就是说 rmi调用是调用 到了, 只是被调用的方法内部出现异常了
所以要找问题应该到rmi服务端去找
具体到上面我这个问题是, rmi服务端又通过rmi去调用rmi://10.78.23.201:1099/matchServerApi上的 getUserTotalEntryFee方法失败了(不能调用)