Hello hessian-interest,
We are planning to use latest version of hessian as an HTTP-based
remote protocol for one of our projects, but unfortunately cannot
execute ever hessian test example.
We are deployed hessian-test.jar in the resin-ee-2.1.8 container.
Below is the example of how client is invoked.
java -cp hessian-2.1.6.jar;hessian-test.jar com.caucho.hessian.test.BasicClient http://localhost:8080/hessian/BasicService
output:
Hello: Hello, world
7 - 2: 5
Exception in thread "main" com.caucho.hessian.io.HessianProtocolException:
at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:164)
at $Proxy0.echo(Unknown Source)
at com.caucho.hessian.test.BasicClient.main(BasicClient.java:88)
The same problem is with hessian-2.1.7.
hessian server caused exception with the following log:
com.caucho.hessian.io.MapDeserializer@xxx
java.lang.UnsupportedOperationException: com.caucho.hessian.io.MapDeserializer@xxx
at com.caucho.hessian.io.Deserializer.readList(Deserializer.java:73)
at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:678)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:179)
at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:169)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:536)
Seems, like some objects are deserialized improperly.
My initial thoughts was hessian classes conflicts with the older
version located in the resin-ejb.jar, but I obtained same results
deploying on the tomcat 4.
My VM is Win32, version 1.4 :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
Also, please, does anybody know, where can I obtain source of the hessian-test.jar
-- Best regards, zdv mailto:zdv@xxx.netReceived on Tue 01 Apr 2003 02:57:31 -0800
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:40 PDT