Tag: 粗麻布

使用Hessian 4.0.7和Spring 3.1.1时出现HessianConnectionException:(HTTP)500错误

好吧,根本无法想象这一个! 我正在使用Spring 3.1.1和Hessian 4.0.7部署到Tomcat 6.0.29中 我已经创建了一个简单的Hessian远程接口,但我的测试仍然失败; Exception in thread “main” com.caucho.hessian.client.HessianConnectionException: 500: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/client/remote/RemoteService at com.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:142) at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283) at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:170) at $Proxy0.testConnection(Unknown Source) at com.qualificationcheck.testserver.TestServer.main(TestServer.java:15) Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/client/remote/remoteservice at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at […]

测试Hessian remoting-servlet.xml

我们使用Hessian进行富客户端和服务器之间的通信。 由于移动和重命名,它有时会发生remoting-servlet.xml中的条目与实际的类名称不匹配。 因此,我正在寻找一种简单的方法来测试远程xml。 有一个简单的方法吗? 最好不要手动解析xml并尝试实例化那里提到的所有类。