-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting incompatible character encodings error on ruby 1.9.2 w/ protocol buffers #128
Comments
Hi Myron, I believe it is a gems issue. I had this originally, but then recreated my Gemset and all the tests pass now:
Regards, Luca Spiller |
@lucaspiller: Thanks. I reinstalled all my gems and am getting the same error, unfortunately. Did you install the exact same versions of all gems? Or was there a particular gem you identified as the culprit? Myron |
@myronmarston: I'd like to consider this bug critical, to be patched on 0.9-stable. I ran into this bug this morning and was unable to resolve it, even when using force_encoding all over the pbufs code. Unfortunately beefcake doesn't give much indication about which field was being serialized when the encoding error occurs. |
I also have this problem on beefcake 0.3.1 (or 0.2.1 for that matter) on ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0] with ripple 0.9 |
This should be fixed on 0.9-stable and master. Please comment/reopen if you encounter the problem again. |
I am still seeing this when using ':protocol => "pbc"':
Here's my setup: $ ruby -v
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit Server VM 1.7.0_09-b30 [linux-amd64]
$ gem list
*** LOCAL GEMS ***
beefcake (0.3.7)
bouncy-castle-java (1.5.0146.1)
builder (3.1.4)
bundler (1.2.3)
celluloid (0.12.4)
excon (0.16.10)
facter (1.6.17)
i18n (0.6.1)
innertube (1.0.2)
jruby-launcher (1.0.15 java)
jruby-openssl (0.8.2)
json (1.7.6 java)
multi_json (1.5.0)
nokogiri (1.5.6 java)
rake (10.0.3)
redis (3.0.2)
rethinkdb (1.2.6.1)
riak-client (1.1.1)
ruby_protobuf (0.4.11)
rubygems-bundler (1.1.0)
rvm (1.11.3.6, 1.11.3.5)
spoon (0.0.1)
spoon_daemon (0.0.3)
timers (1.1.0) Here's the stack trace: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8 ->
org/jruby/RubyString.java:7563:in `encode',
json/ext/GeneratorState.java:210:in `generate',
/home/charl/.rvm/rubies/jruby-1.7.2/lib/ruby/1.9/json/common.rb:223:in `generate',
/home/charl/Projects/89n/analytics/thoth.git/lib/thoth/query.rb:282:in `get',
/home/charl/Projects/89n/analytics/thoth.git/lib/thoth/query.rb:346:in `process',
org/jruby/RubyKernel.java:1809:in `public_send',
/home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch',
/home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `handle_message',
/home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `initialize',
/home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:23:in `initialize' HTTP (with or without Excon) works perfectly. |
Hmm... this may not be a ripple specific issue. Should I rather move this to a ticket under https://github.com/basho/riak-ruby-client/issues or somewhere else? |
@charl Yes, it would be most appropriate there. |
OK, created basho/riak-ruby-client#75. |
I just tried switching to protocol buffers now that 0.9 supports it, and I'm getting lots of test failures related to character encoding incompatibilities. Here's the pertinent part of the backtrace:
I'm not doing anything special to set encodings on strings anywhere, so I think it's likely that this is a bug in ripple (or beefcake).
Thanks,
Myron
The text was updated successfully, but these errors were encountered: