Anonymous | Login | Signup for a new account | 12-17-2024 08:52 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed. 27 unique queries executed. |