Java 春季黑森例外
我正在研究如何处理Spring-Hessian连接中断后的恢复。如果连接关闭,hessian代理可能引发哪些异常?以下是每次尝试连接到不可用的hessian远程服务时都会得到的堆栈跟踪示例: 线程“AWT-EventQueue-0”org.springframework.remoting.RemoteConnectFailureException中出现异常:无法连接到位于的Hessian远程服务[http://localhost:17026/remoting/TestService]; 嵌套异常为java.net.ConnectException:拒绝连接:连接 位于org.springframework.remoting.caucho.HessianClientInterceptor.convertHessianAccessException(HessianClientInterceptor.java:262) 位于org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:235) 位于org.springframework.aop.framework.ReflectiveMethodInvocation.procedue(ReflectiveMethodInvocation.java:172) 位于org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 位于$Proxy1.getNameFromKassa(未知来源)Java 春季黑森例外,java,spring,hessian,Java,Spring,Hessian,我正在研究如何处理Spring-Hessian连接中断后的恢复。如果连接关闭,hessian代理可能引发哪些异常?以下是每次尝试连接到不可用的hessian远程服务时都会得到的堆栈跟踪示例: 线程“AWT-EventQueue-0”org.springframework.remoting.RemoteConnectFailureException中出现异常:无法连接到位于的Hessian远程服务[http://localhost:17026/remoting/TestService]; 嵌套异常
顺便说一句,hessian代理不会因为被关闭的简单原因而抛出任何异常;) 这是一个示例堆栈跟踪,每次尝试连接到不可用的hessian远程服务时都会得到该跟踪: 线程“AWT-EventQueue-0”org.springframework.remoting.RemoteConnectFailureException中出现异常:无法连接到位于的Hessian远程服务[http://localhost:17026/remoting/TestService]; 嵌套异常为java.net.ConnectException:拒绝连接:连接 位于org.springframework.remoting.caucho.HessianClientInterceptor.convertHessianAccessException(HessianClientInterceptor.java:262) 位于org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:235) 位于org.springframework.aop.framework.ReflectiveMethodInvocation.procedue(ReflectiveMethodInvocation.java:172) 位于org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 位于$Proxy1.getNameFromKassa(未知来源) 顺便说一句,hessian代理不会因为被关闭的简单原因而抛出任何异常;)