> Thats the thing that bothers me. It appears that the version 2
> specifications are not properly implemented for Java. Reading the source

With all due respect Ian, maybe you word your posts a little bit more
carefully or provide a little bit more conclusive evidence that the
caucho Hessian 2 implementation is actually incorrect.

> code of Java Hessian 3.1.1, its default implementation version of the
> HessianProxyFactory is at version 1. To instruct the HessianProxyFactory  to
> use the version 2 specifications, you have to declare it on the factory by
> calling the methods setHessian2Request(boolean) and
> setHessian2Reply(boolean) with the argument set to true. Heres my code using
> the HessianProxyFactory:
>
> START OF CODE
>
> HessianProxyFactory factory = new HessianProxyFactory();
>  factory.setHessian2Request(false);
> factory.setHessian2Reply(false);
> Service basic = (Service) factory.create(Service.class,
>   " http://localhost:8080/hessian-test/hello2";);
> basic.getMessage(null); // should throw a NullPointerException because of a
> null argument
>
> END OF CODE
>
> I always get the IOExceptionWrapper:
> java.lang.UnsupportedOperationException when I set either
> or both methods setHessian2Request(boolean) and setHessian2Reply(boolean) to
> true. I get the expected exception ( java.lang.NullPointerException) when i
> set both methods to false. Please do correct me if im wrong.

As I asked in my previous post, is the server side using Hessian 1 or 2?


_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to