You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Rael Dornfest (JIRA)" <ji...@apache.org> on 2010/05/06 01:24:02 UTC
[jira] Created: (AVRO-538) No way to raise errors in a Ruby IPC
server such that they get returned as an avro error type
No way to raise errors in a Ruby IPC server such that they get returned as an avro error type
---------------------------------------------------------------------------------------------
Key: AVRO-538
URL: https://issues.apache.org/jira/browse/AVRO-538
Project: Avro
Issue Type: Bug
Components: ruby
Affects Versions: 1.4.0
Environment: Mac OS X
Reporter: Rael Dornfest
Raising an AvroError or even a subclass thereof doesn't simply return a nice clean Error to the client despite errors being specified in the schema.
Instead, the client sees:
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:46:in `byte!': undefined method `[]' for nil:NilClass (NoMethodError)
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:63:in `read_long'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:379:in `read_union'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:315:in `read_data'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:281:in `read'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:224:in `read_error'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:213:in `read_call_response'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:113:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.