Hessian异常,报302不知是何原因
log4j:WARN Please initialize the log4j system properly.
org.springframework.remoting.RemoteConnectFailureException: Cannot connect to Hessian remote service at [http://192.168.1.111:8080/test/remote/TestService]; nested exception is com.caucho.hessian.client.Hessian
ConnectionException: 302:
at org.springframework.remoting.caucho.HessianClientInterceptor.convertHessianAccessException(HessianClientInterceptor.java:262)
at org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:231)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy1.hello(Unknown Source)
Caused by: com.caucho.hessian.client.HessianConnectionException: 302:
at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:205)
at $Proxy0.hello(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:222)
... 4 more
Hessian
------解决方案--------------------好像是Hessian的远程连接错误,怀疑是URL写的有问题吧.
------解决方案--------------------org.springframework.remoting.RemoteConnectFailureException是不是jar有冲突啊