集群环境测试RMI调用报错,求大侠帮忙解决 最近在集群环境下测试RMI调用,在测试其中一个case的时候发现一个奇怪的问题,求有过类似问题的屌丝和大侠分享和指导,在下不胜感激!!
测试case:Server A ServerB在完全工作的时候RMI调用是正常的,此时重启其中一台serverB,此时ServerA发送请求到ServerB就会报错,只能重启serverA,才能正常工作。
测试环境:serverA linux,serverB linux
测试服务器:websphere
报错信息:
Caused by: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Broken pipe
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:221)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:154)
at com.cs.core.remoting.rmi.RMIInvocationHandler_Stub.invoke(RMIInvocationHandler_Stub.java:53)
at com.cs.core.remoting.service.CSRMIServiceContext$EERMIProxy.invoke(CSRMIServiceContext.java:174)
... 78 more
Caused by: java.net.SocketException: Broken pipe