Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004015 [Hessian] major always 04-26-10 06:00 04-26-10 06:00
Reporter stefanthurnherr View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.2.1
  Product Build
Summary 0004015: Exception: expected binary at 0x41 (when trying to read an InputStream in a Hessian Client)
Description 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
Steps To Reproduce
Additional Information 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!
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
04-26-10 06:00 stefanthurnherr New Issue
04-26-10 06:01 stefanthurnherr Issue Monitored: stefanthurnherr


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker