{"issue":{"user":{"id":225823,"login":"bruceadams","url":"https://api.github.com/users/bruceadams","avatar_url":"https://secure.gravatar.com/avatar/147ef000d3a4fb7bd34d2fef34d55fef?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"147ef000d3a4fb7bd34d2fef34d55fef"},"milestone":null,"created_at":"2011-12-20T19:06:21Z","title":"Improve performance by avoiding \"TypeError: can't dup Fixnum\" exceptions.","labels":[],"state":"closed","updated_at":"2011-12-20T19:13:49Z","id":2616757,"html_url":"https://github.com/jruby/activerecord-jdbc-adapter/issues/150","closed_at":"2011-12-20T19:13:36Z","pull_request":{"patch_url":"https://github.com/jruby/activerecord-jdbc-adapter/pull/150.patch","html_url":"https://github.com/jruby/activerecord-jdbc-adapter/pull/150","diff_url":"https://github.com/jruby/activerecord-jdbc-adapter/pull/150.diff"},"body":"While chasing excess exceptions in our Rails application, I used the JRuby options:\r\n-Xlog.exceptions=true -Xlog.backtraces=true -Xlog.callers=true\r\n\r\nI see many exceptions like this:\r\n\r\nBacktrace generated:\r\nTypeError: can't dup Fixnum\r\n                      dup at org/jruby/RubyKernel.java:1784\r\n         dup_native_types at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/connection.rb:110\r\n                     each at org/jruby/RubyHash.java:1181\r\n                   inject at org/jruby/RubyEnumerable.java:807\r\n         dup_native_types at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/connection.rb:109\r\n                each_pair at org/jruby/RubyHash.java:1211\r\n         dup_native_types at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/connection.rb:108\r\n                 adapter= at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/connection.rb:99\r\n               initialize at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/adapter.rb:39\r\n          jdbc_connection at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/jdbc/connection_methods.rb:6\r\n    postgresql_connection at /home/adams/.rvm/gems/jruby-head@cxo/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/postgresql/connection_methods.rb:15\r\n","number":150,"url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/150","comments":1,"assignee":null},"comment":{"user":{"id":154,"login":"nicksieger","url":"https://api.github.com/users/nicksieger","avatar_url":"https://secure.gravatar.com/avatar/526d60de6472502bb570a9df2842b33b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"526d60de6472502bb570a9df2842b33b"},"created_at":"2011-12-20T19:13:49Z","updated_at":"2011-12-20T19:13:49Z","id":3223629,"body":"Thanks very much for noticing and fixing this!","url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/comments/3223629"},"action":"created"}