Wonderful! I 'm glad to see my post was helpful for you :) My same doubt is no any reply for my error report. Maybe I made some mistake. (I 'm in China,bad at english,and not self-confidence when writing)
2008/3/17, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: > > Send hessian-interest mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://maillist.caucho.com/mailman/listinfo/hessian-interest > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of hessian-interest digest..." > > > Today's Topics: > > 1. Error= com.caucho.hessian.io.HessianProtocolException: > expected byte[] at, 0x20 (Ray Erdelyan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 15 Mar 2008 20:41:23 -0400 > From: Ray Erdelyan <[EMAIL PROTECTED]> > Subject: [Hessian-interest] Error= > com.caucho.hessian.io.HessianProtocolException: expected byte[] at, > 0x20 > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I receive the error when trying to transfer files using code similar to > the "Hessian with large binary data" example. I am using version 3.1.5. > I found a post listing the same error dated: Wed Jan 23 01:59:32 CST > 2008 -- Bug Report: buffered reading error in hessian3.1.3.jar -- > tedeyang at gmail.com. > I followed their suggestion and it solved my problem, but I could find > nothing in the bug list. Here is the fix explained in more detail. > > class= Hessian2Input extends AbstractHessianInput implements > Hessian2Constants > > method= int read(byte[] buffer, int offset, int length) throws > IOException > > ---------- code omitted for brevity --------- > > switch (code) > { > case 'b': > _isLastChunk = false; > _chunkLength = (read() << 8) + read(); > break; > > case 'B': > _isLastChunk = true; > _chunkLength = (read() << 8) + read(); > break; > //======================================Added this section > case 0x20: > case 0x21: > case 0x22: > case 0x23: > case 0x24: > case 0x25: > case 0x26: > case 0x27: > case 0x28: > case 0x29: > case 0x2a: > case 0x2b: > case 0x2c: > case 0x2d: > case 0x2e: > case 0x2f: > _isLastChunk = true; > _chunkLength = code - 0x20; > break; > //============================================= > default: > throw expect("byte[]", code); > } > } > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://maillist.caucho.com/pipermail/hessian-interest/attachments/20080315/e3e173eb/attachment-0001.html > > ------------------------------ > > _______________________________________________ > hessian-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/hessian-interest > > > End of hessian-interest Digest, Vol 19, Issue 11 > ************************************************ >
_______________________________________________ hessian-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/hessian-interest
