Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-450

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.2
    • 1.3.3
    • python, ruby
    • None

    Description

      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

      Attachments

        1. AVRO-450.patch
          10 kB
          Jeff Hodges

        Activity

          People

            jmhodges Jeff Hodges
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: