Hi,
I got this exception when I made BufferedInputStream to wrap the InputStream
which is returned by hessian.
=========================Exception============================
com.caucho.hessian.io.HessianProtocolException: expected byte[] at
0x20 [B ([EMAIL PROTECTED])
com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:3244)
com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:3221)
com.caucho.hessian.io.Hessian2Input.read(Hessian2Input.java:3143)
com.caucho.hessian.io.Hessian2Input$ReadInputStream.read(Hessian2Input.java:3273)
com.caucho.hessian.client.HessianProxyHandler$ResultInputStream.read(HessianProxyHandler.java:310)
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
java.io.BufferedInputStream.read(BufferedInputStream.java:235)
cn.tohot.tnt.test.TestHessController.handleRequest(TestHessController.java:48)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle
...
===============================================================
I found it is 'Hessian2Input.read(byte[] buffer, int offset, int
length)',this method implements Hessian 1 but not hessian 2 's binary
grammar (http://hessian.caucho.com/doc/hessian-serialization.html#anchor5),
To fix this bug,I just compared Hessian2Input.parseByte() with
read(...),and then copy&paste.
It is a 小di
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest