[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-04-05 Thread Jeff Hodges (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12853763#action_12853763
 ] 

Jeff Hodges commented on AVRO-450:
--

Committed.

 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.2
Reporter: Patrick Hunt
Assignee: Jeff Hodges
Priority: Blocker
 Attachments: AVRO-450.patch


 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-04-01 Thread Jeff Hodges (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12852700#action_12852700
 ] 

Jeff Hodges commented on AVRO-450:
--

Hammer, it looks like the current sample_http_client.py is currently broken. 
New ticket?

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-29 Thread Jeff Hodges (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12850871#action_12850871
 ] 

Jeff Hodges commented on AVRO-450:
--

Sigh, this is because the python version started using the web version of IPC 
instead of sockets. There is no HTTP client code.

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-29 Thread Jeff Hodges (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12850874#action_12850874
 ] 

Jeff Hodges commented on AVRO-450:
--

Meaning, this just needs some work done and probably isn't some weird bug.

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-19 Thread Jeff Hammerbacher (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12847281#action_12847281
 ] 

Jeff Hammerbacher commented on AVRO-450:


Hey Jeff, do you plan on working on this ticket any time soon? I'd be happy to 
help debug. Getting a third language into the RPC interop pantheon would 
improve my peace of mind immeasurably.

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-04 Thread Jeff Hammerbacher (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12841500#action_12841500
 ] 

Jeff Hammerbacher commented on AVRO-450:


Ruby folks never implemented RPC interop tests, from what I could tell. Happy 
to help them debug once they start down that path.

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-04 Thread Jeff Hodges (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12841505#action_12841505
 ] 

Jeff Hodges commented on AVRO-450:
--

Yeah, known problem. I've got work to do.

 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.



[jira] Commented: (AVRO-450) Python - Ruby interoperability failing with Mail client/server example

2010-03-04 Thread Patrick Hunt (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12841522#action_12841522
 ] 

Patrick Hunt commented on AVRO-450:
---

FF to remove blocker status if this is a known/expected limitation.

 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.