HessianProxy incorrect for Hessian Protocol 1

  • clayli
Posted: Sat, 05/28/2011 - 07:58

We tested Flamingo Hessian against a Hession Protocol 1 server and had a parsing error. The problem was caused by the HessianProxyFactory returning a Hessian 2 input parser.

Based on reply code (line 198 of HessianProxy), it should be Hessian 1.

else if (code == 'r') {
int major = is.read();
int minor = is.read();

in = _factory.getHessianInput(is);

The default Hessian input parser is set to version 2 (line 455 of HessianProxy):

public AbstractHessianInput getHessianInput(InputStream is)
{
return getHessian2Input(is);
}

It seems line 202 of HessianProxy should be changed to return Hessian 1 parser:
in = _factory.getHessian1Input(is);

Anyone else has a take on this?

Can you provide a small

  • maxkatz
  • 02/17/10
  • Tue, 05/31/2011 - 21:37

Can you provide a small example (.war) where this issue is reproduced? You can upload the file to any free file sharing service.