Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003036 [Hessian] major always 11-03-08 07:16 06-02-09 14:51
Reporter skipper13 View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.2.0
Summary 0003036: version detecting don't work
Description I try test examples "hessia-add" and "hessian-service" from resin-doc. For it I use hessian-3.2.0.jar.

I receive exception Exception in thread "main" com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException: expected hessian reply at 0x48 (H).

If I set both setHessian2Reply and setHessian2Request to false test OK.
Additional Information import java.net.MalformedURLException;
import com.caucho.hessian.client.HessianProxyFactory;

public class Demo {

    public static void main(String[] args) throws MalformedURLException {
    HessianProxyFactory factory;
    MathService math;
    
    factory = new HessianProxyFactory();
    factory.setDebug(true);
    /*
     * if set to false - test OK.
     * if both comment or only one set ro false - test fail.
     */
    factory.setHessian2Reply(false);
    factory.setHessian2Request(false);
    math = (MathService) factory.create(MathService.class, args[0]);

    System.out.println(args[0]);
    System.out.println("193 + 255: " + math.add(193, 255));
    System.out.println("13 - 1231: " + math.sub(13, 1231));
    System.out.println("1776 * 23: " + math.mul(1776, 23));
    System.out.println("34 / 11: " + math.div(34, 11));
    }

}

arg:
http://localhost:8080/resin-doc/examples/hessian-add/hessian/math [^]
http://localhost:8080/resin-doc/examples/hessian-service/math [^]
Attached Files

- Relationships

- Notes
(0004051)
ferg
06-02-09 14:51

hessian/349-
 

- Issue History
Date Modified Username Field Change
11-03-08 07:16 skipper13 New Issue
11-03-08 07:41 skipper13 Issue Monitored: skipper13
06-02-09 14:51 ferg Note Added: 0004051
06-02-09 14:51 ferg Assigned To  => ferg
06-02-09 14:51 ferg Status new => closed
06-02-09 14:51 ferg Resolution open => fixed
06-02-09 14:51 ferg Fixed in Version  => 4.0.1
02-03-11 11:32 extremia Issue Monitored: extremia


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