Hi all, I may be mistaken, but it would be nice if any of you could try this to confirm there is a bug:
This is using JRuby 1.0.1 but has been observed since then on SVN head and various points again. upgrade to Rails2.0: http://weblog.rubyonrails.com/2007/9/30/rails-2-0-0-preview-release build a trivial hello world application with one ActiveRecord object connected to a MYSQL 5 database thorugh AR-JDBC 0.5 for instance, in my case, I have that AR object with some table name comment: class Comment < ActiveRecord::Base end then your console simply type: > jruby script/console >>c= Comment.new true OK >>c.save #yes, do that again and boom: ArgumentError>> : wrong # of arguments(2 for 1) from /home/rvalyi/DEV/livetribune/vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `rollback_active_record_state!' from /home/rvalyi/DEV/livetribune/vendor/rails/activerecord/lib/active_record/transactions.rb:105:in `save_with_transactions' from (irb):3:in `binding' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:150:in `eval_input' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in `signal_status' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:147:in `eval_input' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in `each_top_level_statement' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `loop' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `catch' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `eval_input' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in `start' from :1:in `catch' from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:69:in `start' from :1 The same with MRI just work. So lot's of my operations are working in Rails 2.0 but not saving an AR object that has already been saved (i.e. updating it). Can anyone confirm that bug? A workaround is to disable AR-JDBC and use the pure Ruby driver instead (so at least you can go on with your dev). Raphaël Valyi.
_______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
