Python - Ruby interoperability failing with "Mail" client/server example
------------------------------------------------------------------------

                 Key: AVRO-450
                 URL: https://issues.apache.org/jira/browse/AVRO-450
             Project: Avro
          Issue Type: Bug
          Components: python, ruby
    Affects Versions: 1.3.0
            Reporter: Patrick Hunt
            Priority: Blocker


Errors are generated when attempting to have python client call ruby server 
(and vice-versa). I noticed this issue when updating the quickstart, however 
this is also happening with the 1.3.0 shipping code for the Mail example (in 
test directory). I see this with both server-python/client-ruby and 
server-ruby/client-python.

-------------------------
PYTHONPATH=../src python ./sample_http_client.py you me hello_world
/home/phunt/a/avro-src-1.3.0/lang/py/src/avro/protocol.py:20: 
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "./sample_http_client.py", line 90, in <module>
    result = requestor.request('send', params)
  File "/home/phunt/a/avro-src-1.3.0/lang/py/src/avro/ipc.py", line 138, in 
request
    call_response = self.transceiver.transceive(call_request)
  File "/home/phunt/a/avro-src-1.3.0/lang/py/src/avro/ipc.py", line 471, in 
transceive
    conn_success = self.conn.connect()
  File "/usr/lib/python2.6/httplib.py", line 704, in connect
    self.timeout)
  File "/usr/lib/python2.6/socket.py", line 514, in create_connection
    raise error, msg
socket.error: [Errno 111] Connection refused

-------------------

RUBYLIB=../lib ruby -r 'rubygems' ./sample_ipc_server.rb
../lib/avro/ipc.rb:434:in `read_buffer_length': Socket read 0 bytes. 
(Avro::IPC::ConnectionClosedException)
        from ../lib/avro/ipc.rb:380:in `read_framed_message'
        from ../lib/avro/ipc.rb:378:in `loop'
        from ../lib/avro/ipc.rb:378:in `read_framed_message'
        from ../lib/avro/ipc.rb:243:in `respond'
        from ./sample_ipc_server.rb:84:in `handle'
        from ./sample_ipc_server.rb:74:in `run'
        from ./sample_ipc_server.rb:90


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to