Mantis - Resin
Viewing Issue Advanced Details
116 minor always 04-22-05 00:00 01-30-06 09:38
anonymous  
ferg  
normal  
closed 3.0.15  
2.1.x fixed  
none    
none 3.0.18  
0000116: Hessian Python implementation does not work
RSN-107
Greetings,

The Python client implementation hessianlib.py seems not to work correctly. I tried it with my own service as well as with the http://www.caucho.com/hessian/test/basic [^] service. Both with the same result:

C:\Temp>python hessianlib.py
Traceback (most recent call last):
  File "hessianlib.py", line 463, in ?
    print proxy.hello()
  File "hessianlib.py", line 376, in __call__
    return self._invoker(self._method, args)
  File "hessianlib.py", line 429, in __invoke
    return self.parse_response(h.getfile())
  File "hessianlib.py", line 435, in parse_response
    value = parser.parse_reply()
  File "hessianlib.py", line 277, in parse_reply
    value = self.parse_object()
  File "hessianlib.py", line 285, in parse_object
    return self.parse_object_code(self.read(1))
  File "hessianlib.py", line 352, in parse_object_code
    raise "UnknownObjectCode %d" % code
TypeError: an integer is required


If played around a little bit. If I remove for example
    # major = read(1)
in HessianParser.parse_reply it works:

C:\Temp>python hessianlib.py
Hello, world


Regards -- Tobias
Windows, Python 2.2, Spring Framework

There are no notes attached to this issue.