Mantis - Hessian
Viewing Issue Advanced Details
4015 major always 04-26-10 06:00 04-26-10 06:00
stefanthurnherr  
 
normal  
new 3.2.1  
open  
none    
none  
0004015: Exception: expected binary at 0x41 (when trying to read an InputStream in a Hessian Client)
Using Hessian 3.2.1 on both server side and client side, I am trying to download a file from the server using this API:

public interface IPackageCreatorService{
    InputStream createPackage(String inputString, boolean aFlag);
}

When trying to read from the InputStream, I am getting the following exception:

Exception in thread "main" com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException: expected binary at 0x41 [B ([B@1ac1fe4)
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:258)
    at $Proxy0.createPackage(Unknown Source)
    at com.company.packager.testing.client.HessianDownloadClient.main(HessianDownloadClient.java:37)
Caused by: com.caucho.hessian.io.HessianProtocolException: expected binary at 0x41 [B ([B@1ac1fe4)
    at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2714)
    at com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:2685)
    at com.caucho.hessian.io.Hessian2Input.readInputStream(Hessian2Input.java:2556)
    at com.caucho.hessian.io.InputStreamDeserializer.readObject(InputStreamDeserializer.java:65)
    at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1696)
    at com.caucho.hessian.io.Hessian2Input.readReply(Hessian2Input.java:328)
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:236)
    ... 2 more
The following [hessian-interest] mailing list thread seems to describe the exactly same problem - with no helpful answer so far:
http://maillist.caucho.com/pipermail/hessian-interest/2009-February/000641.html [^]

Hessian v4.x is not usable neither due to this bug:
  http://bugs.caucho.com/view.php?id=3655 [^]

So we'd be forced to use Hessian v3.1.6, which will very soon celebrate its second anniversary. Since that release, two major versions (3.2.x and 4.0.x) were released, which sounds like I should not use such an "old" version anymore.

Btw: I'd really like to use Hessian: it looks simple, light-weight and efficient. Keep up the good work, but improve on marketing/communications!

There are no notes attached to this issue.