Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 春季黑森例外_Java_Spring_Hessian - Fatal编程技术网

Java 春季黑森例外

Java 春季黑森例外,java,spring,hessian,Java,Spring,Hessian,我正在研究如何处理Spring-Hessian连接中断后的恢复。如果连接关闭,hessian代理可能引发哪些异常?以下是每次尝试连接到不可用的hessian远程服务时都会得到的堆栈跟踪示例: 线程“AWT-EventQueue-0”org.springframework.remoting.RemoteConnectFailureException中出现异常:无法连接到位于的Hessian远程服务[http://localhost:17026/remoting/TestService]; 嵌套异常

我正在研究如何处理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(未知来源)


顺便说一句,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代理不会因为被关闭的简单原因而抛出任何异常;)