bcg / em-mongo

EventMachine MongoDB Driver (based off of RMongo)
http://github.com/bcg/em-mongo
141 stars 47 forks source link

Doesn't run under JRuby #25

Closed PlasticLizard closed 6 years ago

PlasticLizard commented 13 years ago

I'll try to dig into this in more detail later, but I thought I'd capture it. EM-Mongo doesn't seem to work under JRuby, BSON issues:

NativeException in 'EventMachine::Mongo::Collection should handle multiple pending queries' org.bson.BSONException: should be impossible org/bson/BSONDecoder.java:35:in decode' org/bson/BSONDecoder.java:35:indecode' /home/nathan/.rvm/gems/jruby-1.6.2/gems/bson-1.3.1-java/lib/../lib/bson/bson_java.rb:16:in deserialize' org/jruby/RubyRange.java:407:ineach' org/jruby/RubyEnumerable.java:706:in collect' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:1447:inevent_callback' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:82:in eventCallback' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:101:inrun_machine' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:256:in run' /home/nathan/.rvm/gems/jruby-1.6.2/bundler/gems/em-spec-25509a6efa0c/lib/em-spec/rspec.rb:24:inem' /home/nathan/.rvm/gems/jruby-1.6.2/bundler/gems/em-spec-25509a6efa0c/lib/em-spec/rspec.rb:62:in instance_eval' org/jruby/ext/Timeout.java:79:intimeout' org/jruby/RubyArray.java:1602:in each' org/jruby/RubyArray.java:1602:ineach' org/jruby/RubyKernel.java:1063:in `load'

bcg commented 13 years ago

You can throw it in a Github issue if you like. I've never tested it against Jruby.

On Wed, Jun 29, 2011 at 9:07 PM, PlasticLizard reply@reply.github.com wrote:

I'll try to dig into this in more detail later, but I thought I'd capture it. EM-Mongo doesn't seem to work under JRuby, BSON issues:

NativeException in 'EventMachine::Mongo::Collection should handle multiple pending queries' org.bson.BSONException: should be impossible org/bson/BSONDecoder.java:35:in decode' org/bson/BSONDecoder.java:35:indecode' /home/nathan/.rvm/gems/jruby-1.6.2/gems/bson-1.3.1-java/lib/../lib/bson/bson_java.rb:16:in deserialize' org/jruby/RubyRange.java:407:ineach' org/jruby/RubyEnumerable.java:706:in collect' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:1447:inevent_callback' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:82:in eventCallback' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:101:inrun_machine' /home/nathan/.rvm/gems/jruby-1.6.2/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:256:in run' /home/nathan/.rvm/gems/jruby-1.6.2/bundler/gems/em-spec-25509a6efa0c/lib/em-spec/rspec.rb:24:inem' /home/nathan/.rvm/gems/jruby-1.6.2/bundler/gems/em-spec-25509a6efa0c/lib/em-spec/rspec.rb:62:in instance_eval' org/jruby/ext/Timeout.java:79:intimeout' org/jruby/RubyArray.java:1602:in each' org/jruby/RubyArray.java:1602:ineach' org/jruby/RubyKernel.java:1063:in `load'

Reply to this email directly or view it on GitHub: https://github.com/bcg/em-mongo/issues/25

Brenden Grace

ayosec commented 13 years ago

I have sent a pull-request which fixes this.

https://github.com/bcg/em-mongo/pull/29

ayosec commented 13 years ago

This issue can be closed.