From noreply at rubyforge.org Wed Jan 2 11:13:46 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 2 Jan 2008 11:13:46 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16738 ] "private method `makedirs' called for File:Class" when running "rake war:standalone:create" Message-ID: <20080102161346.3B2C618585FA@rubyforge.org> Bugs item #16738, was opened at 2007-12-31 15:57 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16738&group_id=2014 Category: rails-integration Group: None Status: Open Resolution: None Priority: 3 Submitted By: Kaj Hejer (kajh) Assigned to: Robert Egglestone (tantalon) Summary: "private method `makedirs' called for File:Class" when running "rake war:standalone:create" Initial Comment: $ rake --version rake, version 0.8.1 $ jruby --version ruby 1.8.5 (2007-12-15 rev 5200) [i386-jruby1.0.3] I installed goldspike from trunk: script/plugin install http://jruby-extras.rubyforge.org/svn/trunk/rails-integration/plugins/goldspike I'm on osx 10.5.1. $ rake --trace war:standalone:create(in /Users/kajh/src/medark) ** Invoke war:standalone:create (first_time) ** Invoke war:init (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute war:init ** Execute war:standalone:create info: Assembling web application info: Packing needed Java libraries ... rake aborted! private method `makedirs' called for File:Class /Users/kajh/src/medark/vendor/plugins/goldspike/lib/packer.rb:108:in `add_java_libraries' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:72:in `add_java_libraries' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:52:in `assemble' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:46:in `create_war_file' /Users/kajh/src/medark/vendor/plugins/goldspike/tasks/war.rake:24 /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/rails.rb:8:in `call' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `each' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `synchronize' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `each' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `standard_exception_handling' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31:in `standard_exception_handling' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 :1:in `load' :1 ---------------------------------------------------------------------- Comment By: Stephen Bannasch (stepheneb) Date: 2008-01-02 11:13 Message: I also have this problem on MacOS 10.4.11, Java 1.5.0_13, and JRuby trunk r5456. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16738&group_id=2014 From nobody at rubyforge.org Wed Jan 2 16:42:53 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 2 Jan 2008 16:42:53 -0500 (EST) Subject: [Jruby-extras-devel] [860] trunk/rails-integration/plugins/goldspike/lib: Change to using FileUtils for copy and directory operations Message-ID: <20080102214254.18F201858618@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080102/e465bb65/attachment.html From nobody at rubyforge.org Wed Jan 2 16:43:00 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 2 Jan 2008 16:43:00 -0500 (EST) Subject: [Jruby-extras-devel] [861] trunk/rails-integration/plugins/goldspike/lib/create_war.rb: Missed one more File.makedirs Message-ID: <20080102214300.B7AE81858600@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080102/10e9496a/attachment-0001.html From nobody at rubyforge.org Wed Jan 2 16:43:07 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 2 Jan 2008 16:43:07 -0500 (EST) Subject: [Jruby-extras-devel] [862] trunk/rails-integration/plugins/goldspike-snapshot/lib: Change to FileUtils.copy and makedirs in snapshot plugin also Message-ID: <20080102214307.247C4185863D@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080102/25557dee/attachment.html From nobody at rubyforge.org Wed Jan 2 17:03:55 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 2 Jan 2008 17:03:55 -0500 (EST) Subject: [Jruby-extras-devel] [863] trunk/activerecord-jdbc/lib: Updating database tasks to be compatible with Rake 0.8, and removing the need to copy Message-ID: <20080102220355.4E7701858641@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080102/4713d321/attachment.html From noreply at rubyforge.org Wed Jan 2 17:11:36 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 2 Jan 2008 17:11:36 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16738 ] "private method `makedirs' called for File:Class" when running "rake war:standalone:create" Message-ID: <20080102221136.90AF9185866A@rubyforge.org> Bugs item #16738, was opened at 2007-12-31 14:57 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16738&group_id=2014 Category: rails-integration Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Kaj Hejer (kajh) Assigned to: Robert Egglestone (tantalon) >Summary: "private method `makedirs' called for File:Class" when running "rake war:standalone:create" Initial Comment: $ rake --version rake, version 0.8.1 $ jruby --version ruby 1.8.5 (2007-12-15 rev 5200) [i386-jruby1.0.3] I installed goldspike from trunk: script/plugin install http://jruby-extras.rubyforge.org/svn/trunk/rails-integration/plugins/goldspike I'm on osx 10.5.1. $ rake --trace war:standalone:create(in /Users/kajh/src/medark) ** Invoke war:standalone:create (first_time) ** Invoke war:init (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute war:init ** Execute war:standalone:create info: Assembling web application info: Packing needed Java libraries ... rake aborted! private method `makedirs' called for File:Class /Users/kajh/src/medark/vendor/plugins/goldspike/lib/packer.rb:108:in `add_java_libraries' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:72:in `add_java_libraries' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:52:in `assemble' /Users/kajh/src/medark/vendor/plugins/goldspike/lib/create_war.rb:46:in `create_war_file' /Users/kajh/src/medark/vendor/plugins/goldspike/tasks/war.rake:24 /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/rails.rb:8:in `call' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `each' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `synchronize' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `each' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `standard_exception_handling' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31:in `standard_exception_handling' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' /Users/kajh/bin/jruby-1.0.3/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 :1:in `load' :1 ---------------------------------------------------------------------- >Comment By: Nick Sieger (nicksieger) Date: 2008-01-02 16:11 Message: Fixed in r862 of the goldspike plugin ---------------------------------------------------------------------- Comment By: Stephen Bannasch (stepheneb) Date: 2008-01-02 10:13 Message: I also have this problem on MacOS 10.4.11, Java 1.5.0_13, and JRuby trunk r5456. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16738&group_id=2014 From nobody at rubyforge.org Wed Jan 2 17:13:12 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 2 Jan 2008 17:13:12 -0500 (EST) Subject: [Jruby-extras-devel] [864] trunk/activerecord-jdbc/lib/tasks/: Removing empty directory Message-ID: <20080102221312.A99B8185866D@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080102/6280f0ec/attachment-0001.html From noreply at rubyforge.org Thu Jan 3 08:51:11 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 3 Jan 2008 08:51:11 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16789 ] activerecord-jdbc-adapter-0.7 oracle issue Message-ID: <20080103135111.B642C18585F0@rubyforge.org> Bugs item #16789, was opened at 2008-01-03 08:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: activerecord-jdbc-adapter-0.7 oracle issue Initial Comment: upgrading from activerecord-jdbc-adapter-0.6 to 0.7 has created the following issue under oracle 10g when trying to insert a simple record into a table : NFO | jvm 1 | 2008/01/03 13:39:02 | 13:39:01.924 INFO rails.sonar - Migrating to PopulateDatabase (3) INFO | jvm 1 | 2008/01/03 13:39:02 | == PopulateDatabase: migrating ================================================ INFO | jvm 1 | 2008/01/03 13:39:03 | 13:39:03.252 ERROR rails.sonar - INFO | jvm 1 | 2008/01/03 13:39:03 | INFO | jvm 1 | 2008/01/03 13:39:03 | ActiveRecord::StatementInvalid (ActiveRecord::ActiveRecordError: Invalid column index: INSERT INTO metrics (name, description, direction, value_type) VALUES('cobertura_line_rate', 'Line Rate Coverage', 1, 6)): INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:101:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:121:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:129:in `save_with_transactions' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:451:in `create' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:631:in `insert_metric' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:553:in `insert_metrics' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:22:in `up' everything worked fine with the 0.6 release. AR code creating the table : create_table :metrics do |t| t.column :name, :string, :null => false, :limit => 64 t.column :value_type, :integer, :null => false t.column :description, :string, :null => true t.column :direction, :integer, :null => false, :default => 0 end AR call to insert the record : Metric.create(:name => name, :description => description, :value_type => value_type, :direction => direction) The oracle sequence is correctly created (checked on the oracle server) ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 From noreply at rubyforge.org Thu Jan 3 23:29:04 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 3 Jan 2008 23:29:04 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16789 ] activerecord-jdbc-adapter-0.7 oracle issue Message-ID: <20080104042904.406F61858662@rubyforge.org> Bugs item #16789, was opened at 2008-01-03 07:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: activerecord-jdbc-adapter-0.7 oracle issue Initial Comment: upgrading from activerecord-jdbc-adapter-0.6 to 0.7 has created the following issue under oracle 10g when trying to insert a simple record into a table : NFO | jvm 1 | 2008/01/03 13:39:02 | 13:39:01.924 INFO rails.sonar - Migrating to PopulateDatabase (3) INFO | jvm 1 | 2008/01/03 13:39:02 | == PopulateDatabase: migrating ================================================ INFO | jvm 1 | 2008/01/03 13:39:03 | 13:39:03.252 ERROR rails.sonar - INFO | jvm 1 | 2008/01/03 13:39:03 | INFO | jvm 1 | 2008/01/03 13:39:03 | ActiveRecord::StatementInvalid (ActiveRecord::ActiveRecordError: Invalid column index: INSERT INTO metrics (name, description, direction, value_type) VALUES('cobertura_line_rate', 'Line Rate Coverage', 1, 6)): INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:101:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:121:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:129:in `save_with_transactions' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:451:in `create' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:631:in `insert_metric' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:553:in `insert_metrics' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:22:in `up' everything worked fine with the 0.6 release. AR code creating the table : create_table :metrics do |t| t.column :name, :string, :null => false, :limit => 64 t.column :value_type, :integer, :null => false t.column :description, :string, :null => true t.column :direction, :integer, :null => false, :default => 0 end AR call to insert the record : Metric.create(:name => name, :description => description, :value_type => value_type, :direction => direction) The oracle sequence is correctly created (checked on the oracle server) ---------------------------------------------------------------------- >Comment By: Nick Sieger (nicksieger) Date: 2008-01-03 22:29 Message: Sorry about the regression. Can you try to work up a small testcase, attach it to JRuby's JIRA at http://jira.codehaus.org/browse/JRUBY, and send an email to the mailing list? I myself don't have access to Oracle, but hopefully someone else who does can confirm the behavior. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 From noreply at rubyforge.org Fri Jan 4 15:38:59 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 4 Jan 2008 15:38:59 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16789 ] activerecord-jdbc-adapter-0.7 oracle issue Message-ID: <20080104203859.BDBB71858641@rubyforge.org> Bugs item #16789, was opened at 2008-01-03 08:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: activerecord-jdbc-adapter-0.7 oracle issue Initial Comment: upgrading from activerecord-jdbc-adapter-0.6 to 0.7 has created the following issue under oracle 10g when trying to insert a simple record into a table : NFO | jvm 1 | 2008/01/03 13:39:02 | 13:39:01.924 INFO rails.sonar - Migrating to PopulateDatabase (3) INFO | jvm 1 | 2008/01/03 13:39:02 | == PopulateDatabase: migrating ================================================ INFO | jvm 1 | 2008/01/03 13:39:03 | 13:39:03.252 ERROR rails.sonar - INFO | jvm 1 | 2008/01/03 13:39:03 | INFO | jvm 1 | 2008/01/03 13:39:03 | ActiveRecord::StatementInvalid (ActiveRecord::ActiveRecordError: Invalid column index: INSERT INTO metrics (name, description, direction, value_type) VALUES('cobertura_line_rate', 'Line Rate Coverage', 1, 6)): INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:101:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:121:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:129:in `save_with_transactions' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:451:in `create' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:631:in `insert_metric' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:553:in `insert_metrics' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:22:in `up' everything worked fine with the 0.6 release. AR code creating the table : create_table :metrics do |t| t.column :name, :string, :null => false, :limit => 64 t.column :value_type, :integer, :null => false t.column :description, :string, :null => true t.column :direction, :integer, :null => false, :default => 0 end AR call to insert the record : Metric.create(:name => name, :description => description, :value_type => value_type, :direction => direction) The oracle sequence is correctly created (checked on the oracle server) ---------------------------------------------------------------------- Comment By: Rob Christie (rwc9u) Date: 2008-01-04 15:38 Message: I upgraded from rails 1.2.4 to rails 2.0 and from activerecord-jdbc-adapter 0.5 to 0.7 and I am seeing the same behavior. I added the following to my environment.rb as a quick fix. This forces the prefetch of the sequence on the rails side. if RUBY_PLATFORM =~ /java/ # the following is a hack to fix inserts for # activerecord-jdbc-adapter 0.7 module ::JdbcSpec module Oracle def prefetch_primary_key?(table_name = nil) true end def next_sequence_value(sequence_name) select_one("select #{sequence_name}.nextval id from dual")['id'].to_i end end end end ---------------------------------------------------------------------- Comment By: Nick Sieger (nicksieger) Date: 2008-01-03 23:29 Message: Sorry about the regression. Can you try to work up a small testcase, attach it to JRuby's JIRA at http://jira.codehaus.org/browse/JRUBY, and send an email to the mailing list? I myself don't have access to Oracle, but hopefully someone else who does can confirm the behavior. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 From clamey at localmatters.com Fri Jan 4 16:24:19 2008 From: clamey at localmatters.com (Chris Lamey) Date: Fri, 4 Jan 2008 14:24:19 -0700 Subject: [Jruby-extras-devel] Goldspike Question Message-ID: Hey guys, I'm not sure this is the right place for this question, so I apologize in advance if it is not. And if it isn't, I would appreciate some direction on where to go. I'm using Goldspike to create a war from a rails app. The 'rake war:standalone:create' command generates trunk.war just fine. I then copy that into my $CATALINA_HOME/webapps directory and startup Tomcat. Tomcat starts ok, nothing in catalina.out, but I get this in my logs/localhost.2008-01-04.log: Jan 4, 2008 2:06:10 PM org.apache.catalina.core.ApplicationContext log INFO: Ruby is running in standalone mode Jan 4, 2008 2:06:12 PM org.apache.catalina.core.ApplicationContext log INFO: JRuby init time: 1313ms Jan 4, 2008 2:06:18 PM org.apache.catalina.core.ApplicationContext log INFO: Failed to load Rails: no such file to load -- postgres /opt/local/share/java/tomcat5/webapps/trunk/vendor/rails/activerecord/lib/.. /../activesupport/lib/active_support/dependencies.rb:499:in `require' /opt/local/share/java/tomcat5/webapps/trunk/vendor/plugins/opus/init.rb:12:i n `binding' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:79:in `eval' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:79:in `evaluate_init_rb' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:39:in `silence_warnings' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:75:in `evaluate_init_rb' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:39:in `load' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin/loader.rb:33:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:189:in `each' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin/loader.rb:32:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:189:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:105:in `process' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:49:in `send' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:49:in `run' /opt/local/share/java/tomcat5/webapps/trunk/config/environment.rb:19 :1 The vendor/plugins/opus/init.rb:12 line looks like this: require 'opus/language' I have the postgres gem listed in config/war.rb and it gets packaged like so: WEB-INF/gems/gems/postgres-0.7.1 This app has two databases that it needs to talk to. The usual 'production' one in database.yml, plus another one named 'opus_production' in database.yml. We've subclassed ActiveRecord::Base, so that our subclass has this line: establish_connection "opus_#{RAILS_ENV}" Not sure if that has any bearing in terms of Goldspike/Jruby, but it's different than what I've seen other folks do. I'm really out of my element with this, what kind of things should I be looking at? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080104/b99a66d2/attachment.html From clamey at localmatters.com Fri Jan 4 17:04:34 2008 From: clamey at localmatters.com (Christopher Lamey) Date: Fri, 04 Jan 2008 15:04:34 -0700 Subject: [Jruby-extras-devel] Goldspike Question In-Reply-To: Message-ID: Hello, I noticed that my database.yml had this adapter: postgresql Instead of this adapter: jdbc In both my db configs. I changed them, but am getting a similar error: Jan 4, 2008 3:00:05 PM org.apache.catalina.core.ApplicationContext log INFO: Failed to load Rails: The driver encountered an error: java.lang.NullPointerException: null /opt/local/share/java/tomcat5/webapps/trunk/vendor/rails/activerecord/lib/.. /../activesupport/lib/active_support/dependencies.rb:499:in `require' /opt/local/share/java/tomcat5/webapps/trunk/vendor/plugins/opus/init.rb:12:i n `binding' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:79:in `eval' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:79:in `evaluate_init_rb' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:39:in `silence_warnings' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:75:in `evaluate_init_rb' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin.rb:39:in `load' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin/loader.rb:33:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:189:in `each' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/rails/plugin/loader.rb:32:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:189:in `load_plugins' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:105:in `process' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:49:in `send' /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ lib/initializer.rb:49:in `run' /opt/local/share/java/tomcat5/webapps/trunk/config/environment.rb:19 :1 I do have this in my config/environment.rb: if RUBY_PLATFORM =~ /java/ require 'rubygems' gem 'ActiveRecord-JDBC' require 'jdbc_adapter' end On 1/4/08 2:24 PM, "Chris Lamey" wrote: > Hey guys, > > I'm not sure this is the right place for this question, so I apologize in > advance if it is not. And if it isn't, I would appreciate some direction on > where to go. > > I'm using Goldspike to create a war from a rails app. The 'rake > war:standalone:create' command generates trunk.war just fine. I then copy > that into my $CATALINA_HOME/webapps directory and startup Tomcat. Tomcat > starts ok, nothing in catalina.out, but I get this in my > logs/localhost.2008-01-04.log: > > Jan 4, 2008 2:06:10 PM org.apache.catalina.core.ApplicationContext log > INFO: Ruby is running in standalone mode > Jan 4, 2008 2:06:12 PM org.apache.catalina.core.ApplicationContext log > INFO: JRuby init time: 1313ms > Jan 4, 2008 2:06:18 PM org.apache.catalina.core.ApplicationContext log > INFO: Failed to load Rails: no such file to load -- postgres > > /opt/local/share/java/tomcat5/webapps/trunk/vendor/rails/activerecord/lib/.. > /../activesupport/lib/active_support/dependencies.rb:499:in `require' > /opt/local/share/java/tomcat5/webapps/trunk/vendor/plugins/opus/init.rb:12:i > n `binding' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:79:in `eval' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:79:in `evaluate_init_rb' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:39:in `silence_warnings' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:75:in `evaluate_init_rb' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:39:in `load' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin/loader.rb:33:in `load_plugins' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:189:in `each' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin/loader.rb:32:in `load_plugins' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:189:in `load_plugins' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:105:in `process' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:49:in `send' > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:49:in `run' > /opt/local/share/java/tomcat5/webapps/trunk/config/environment.rb:19 > :1 > > The vendor/plugins/opus/init.rb:12 line looks like this: > > require 'opus/language' > > I have the postgres gem listed in config/war.rb and it gets packaged like > so: > > WEB-INF/gems/gems/postgres-0.7.1 > > This app has two databases that it needs to talk to. The usual 'production' > one in database.yml, plus another one named 'opus_production' in > database.yml. > > We've subclassed ActiveRecord::Base, so that our subclass has this line: > > establish_connection "opus_#{RAILS_ENV}" > > Not sure if that has any bearing in terms of Goldspike/Jruby, but it's > different than what I've seen other folks do. > > I'm really out of my element with this, what kind of things should I be > looking at? > > Thanks, > Chris > > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel From clamey at localmatters.com Fri Jan 4 17:10:09 2008 From: clamey at localmatters.com (Christopher Lamey) Date: Fri, 04 Jan 2008 15:10:09 -0700 Subject: [Jruby-extras-devel] Goldspike Question In-Reply-To: Message-ID: So I just noticed now that the jdbc url was malformed in database.yml. I fixed that and now I'm getting errors about Rmagick - I think I'm past the postgres/db issue... I knew once I sent out the mail that I'd find the problem:) On 1/4/08 3:04 PM, "Christopher Lamey" wrote: > Hello, > > I noticed that my database.yml had this > > adapter: postgresql > > Instead of this > > adapter: jdbc > > In both my db configs. I changed them, but am getting a similar error: > > Jan 4, 2008 3:00:05 PM org.apache.catalina.core.ApplicationContext log > INFO: Failed to load Rails: The driver encountered an error: > java.lang.NullPointerException: null > > /opt/local/share/java/tomcat5/webapps/trunk/vendor/rails/activerecord/lib/.. > /../activesupport/lib/active_support/dependencies.rb:499:in `require' > > /opt/local/share/java/tomcat5/webapps/trunk/vendor/plugins/opus/init.rb:12:i > n `binding' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:79:in `eval' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:79:in `evaluate_init_rb' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:39:in `silence_warnings' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:75:in `evaluate_init_rb' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin.rb:39:in `load' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin/loader.rb:33:in `load_plugins' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:189:in `each' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/rails/plugin/loader.rb:32:in `load_plugins' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:189:in `load_plugins' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:105:in `process' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:49:in `send' > > /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ > lib/initializer.rb:49:in `run' > /opt/local/share/java/tomcat5/webapps/trunk/config/environment.rb:19 > :1 > > I do have this in my config/environment.rb: > > if RUBY_PLATFORM =~ /java/ > require 'rubygems' > gem 'ActiveRecord-JDBC' > require 'jdbc_adapter' > end > > > On 1/4/08 2:24 PM, "Chris Lamey" wrote: > >> Hey guys, >> >> I'm not sure this is the right place for this question, so I apologize in >> advance if it is not. And if it isn't, I would appreciate some direction on >> where to go. >> >> I'm using Goldspike to create a war from a rails app. The 'rake >> war:standalone:create' command generates trunk.war just fine. I then copy >> that into my $CATALINA_HOME/webapps directory and startup Tomcat. Tomcat >> starts ok, nothing in catalina.out, but I get this in my >> logs/localhost.2008-01-04.log: >> >> Jan 4, 2008 2:06:10 PM org.apache.catalina.core.ApplicationContext log >> INFO: Ruby is running in standalone mode >> Jan 4, 2008 2:06:12 PM org.apache.catalina.core.ApplicationContext log >> INFO: JRuby init time: 1313ms >> Jan 4, 2008 2:06:18 PM org.apache.catalina.core.ApplicationContext log >> INFO: Failed to load Rails: no such file to load -- postgres >> >> /opt/local/share/java/tomcat5/webapps/trunk/vendor/rails/activerecord/lib/.. >> /../activesupport/lib/active_support/dependencies.rb:499:in `require' >> /opt/local/share/java/tomcat5/webapps/trunk/vendor/plugins/opus/init.rb:12:i >> n `binding' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin.rb:79:in `eval' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin.rb:79:in `evaluate_init_rb' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin.rb:39:in `silence_warnings' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin.rb:75:in `evaluate_init_rb' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin.rb:39:in `load' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin/loader.rb:33:in `load_plugins' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/initializer.rb:189:in `each' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/rails/plugin/loader.rb:32:in `load_plugins' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/initializer.rb:189:in `load_plugins' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/initializer.rb:105:in `process' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/initializer.rb:49:in `send' >> /opt/local/share/java/tomcat5/webapps/trunk/config/../vendor/rails/railties/ >> lib/initializer.rb:49:in `run' >> /opt/local/share/java/tomcat5/webapps/trunk/config/environment.rb:19 >> :1 >> >> The vendor/plugins/opus/init.rb:12 line looks like this: >> >> require 'opus/language' >> >> I have the postgres gem listed in config/war.rb and it gets packaged like >> so: >> >> WEB-INF/gems/gems/postgres-0.7.1 >> >> This app has two databases that it needs to talk to. The usual 'production' >> one in database.yml, plus another one named 'opus_production' in >> database.yml. >> >> We've subclassed ActiveRecord::Base, so that our subclass has this line: >> >> establish_connection "opus_#{RAILS_ENV}" >> >> Not sure if that has any bearing in terms of Goldspike/Jruby, but it's >> different than what I've seen other folks do. >> >> I'm really out of my element with this, what kind of things should I be >> looking at? >> >> Thanks, >> Chris >> >> _______________________________________________ >> Jruby-extras-devel mailing list >> Jruby-extras-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/jruby-extras-devel > > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel From nobody at rubyforge.org Fri Jan 4 18:08:17 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Fri, 4 Jan 2008 18:08:17 -0500 (EST) Subject: [Jruby-extras-devel] [865] trunk/jopenssl: Fix for JRUBY-1222 and re-enabled test_ssl. Message-ID: <20080104230817.5829B1858661@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080104/b326fee5/attachment.html From nobody at rubyforge.org Fri Jan 4 23:53:19 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Fri, 4 Jan 2008 23:53:19 -0500 (EST) Subject: [Jruby-extras-devel] [866] trunk/activerecord-jdbc/Rakefile: Mind paths when invoking jar command (use appropriate file separator). Message-ID: <20080105045319.9825D185868E@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080104/ede3fa20/attachment.html From nobody at rubyforge.org Sat Jan 5 09:08:05 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sat, 5 Jan 2008 09:08:05 -0500 (EST) Subject: [Jruby-extras-devel] [867] trunk/activerecord-jdbc: Add tests for aliasing with multibyte characters, and make sure that column names are also always unicode strings Message-ID: <20080105140805.8DDF41858673@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080105/1c59ede6/attachment-0001.html From noreply at rubyforge.org Sat Jan 5 15:11:22 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 5 Jan 2008 15:11:22 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-16789 ] activerecord-jdbc-adapter-0.7 oracle issue Message-ID: <20080105201123.7DF2918586A8@rubyforge.org> Bugs item #16789, was opened at 2008-01-03 14:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: activerecord-jdbc-adapter-0.7 oracle issue Initial Comment: upgrading from activerecord-jdbc-adapter-0.6 to 0.7 has created the following issue under oracle 10g when trying to insert a simple record into a table : NFO | jvm 1 | 2008/01/03 13:39:02 | 13:39:01.924 INFO rails.sonar - Migrating to PopulateDatabase (3) INFO | jvm 1 | 2008/01/03 13:39:02 | == PopulateDatabase: migrating ================================================ INFO | jvm 1 | 2008/01/03 13:39:03 | 13:39:03.252 ERROR rails.sonar - INFO | jvm 1 | 2008/01/03 13:39:03 | INFO | jvm 1 | 2008/01/03 13:39:03 | ActiveRecord::StatementInvalid (ActiveRecord::ActiveRecordError: Invalid column index: INSERT INTO metrics (name, description, direction, value_type) VALUES('cobertura_line_rate', 'Line Rate Coverage', 1, 6)): INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:101:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:121:in `transaction' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/transactions.rb:129:in `save_with_transactions' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/WEB-INF/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:451:in `create' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:631:in `insert_metric' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:553:in `insert_metrics' INFO | jvm 1 | 2008/01/03 13:39:03 | E:/server/sonar-dev/lib/sonar-web/app/controllers/../../db/migrate/003_populate_database.rb:22:in `up' everything worked fine with the 0.6 release. AR code creating the table : create_table :metrics do |t| t.column :name, :string, :null => false, :limit => 64 t.column :value_type, :integer, :null => false t.column :description, :string, :null => true t.column :direction, :integer, :null => false, :default => 0 end AR call to insert the record : Metric.create(:name => name, :description => description, :value_type => value_type, :direction => direction) The oracle sequence is correctly created (checked on the oracle server) ---------------------------------------------------------------------- Comment By: Mike Heininger (heininger) Date: 2008-01-05 21:11 Message: I can confirm this issue too. activerecord-jdbc-adapter 0.6 works activerecord-jdbc-adapter 0.7 does not work Both versions fetch the id sequence but version 0.7 does not include the id in the sql insert. ---------------------------------------------------------------------- Comment By: Rob Christie (rwc9u) Date: 2008-01-04 21:38 Message: I upgraded from rails 1.2.4 to rails 2.0 and from activerecord-jdbc-adapter 0.5 to 0.7 and I am seeing the same behavior. I added the following to my environment.rb as a quick fix. This forces the prefetch of the sequence on the rails side. if RUBY_PLATFORM =~ /java/ # the following is a hack to fix inserts for # activerecord-jdbc-adapter 0.7 module ::JdbcSpec module Oracle def prefetch_primary_key?(table_name = nil) true end def next_sequence_value(sequence_name) select_one("select #{sequence_name}.nextval id from dual")['id'].to_i end end end end ---------------------------------------------------------------------- Comment By: Nick Sieger (nicksieger) Date: 2008-01-04 05:29 Message: Sorry about the regression. Can you try to work up a small testcase, attach it to JRuby's JIRA at http://jira.codehaus.org/browse/JRUBY, and send an email to the mailing list? I myself don't have access to Oracle, but hopefully someone else who does can confirm the behavior. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=16789&group_id=2014 From nobody at rubyforge.org Sat Jan 5 18:30:41 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sat, 5 Jan 2008 18:30:41 -0500 (EST) Subject: [Jruby-extras-devel] [868] trunk/rails-integration: Fix for empty responses being sent. Message-ID: <20080105233041.F22881858697@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080105/c15b69bd/attachment.html From nobody at rubyforge.org Sun Jan 6 01:33:50 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 01:33:50 -0500 (EST) Subject: [Jruby-extras-devel] [869] trunk/rails-integration/build.xml: Update to JRuby 1.0.3 Message-ID: <20080106063350.584161858687@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/0172b026/attachment.html From nobody at rubyforge.org Sun Jan 6 16:52:25 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 16:52:25 -0500 (EST) Subject: [Jruby-extras-devel] [870] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mysql.rb: Add these parameters to url for MySQL, no matter what Message-ID: <20080106215226.17D5E18585F6@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/0aa3b2b8/attachment.html From nobody at rubyforge.org Sun Jan 6 21:46:30 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 21:46:30 -0500 (EST) Subject: [Jruby-extras-devel] [871] trunk/activerecord-jdbc: Update release notes to mention rake incompatibility fixed Message-ID: <20080107024630.2981718585F9@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/353ba907/attachment-0001.html From nobody at rubyforge.org Sun Jan 6 21:46:59 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 21:46:59 -0500 (EST) Subject: [Jruby-extras-devel] [872] tags/activerecord-jdbc/release-0.7.1/: Tagging ar-jdbc 0.7.1 Message-ID: <20080107024659.4E5DB18585FC@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/34e8f1d2/attachment.html From nobody at rubyforge.org Sun Jan 6 21:50:22 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 21:50:22 -0500 (EST) Subject: [Jruby-extras-devel] [873] trunk/jopenssl: Preparing for 0.1.1 Message-ID: <20080107025022.301A31588056@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/116703c0/attachment.html From nobody at rubyforge.org Sun Jan 6 21:58:16 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 6 Jan 2008 21:58:16 -0500 (EST) Subject: [Jruby-extras-devel] [874] tags/jopenssl/0.1.1/: Tagging 0.1.1 Message-ID: <20080107025816.663201858622@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080106/cbcd4bec/attachment.html From nobody at rubyforge.org Mon Jan 7 18:30:59 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 7 Jan 2008 18:30:59 -0500 (EST) Subject: [Jruby-extras-devel] [875] trunk/activerecord-jdbc/src/java/jdbc_adapter/ JdbcAdapterInternalService.java: Switch to using getColumnLabel instead of getColumnName. Message-ID: <20080107233059.6926A18585EF@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080107/2e510812/attachment.html From nobody at rubyforge.org Wed Jan 9 14:39:48 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 9 Jan 2008 14:39:48 -0500 (EST) Subject: [Jruby-extras-devel] [876] trunk/rails-integration/pom.xml: Set snapshot version to the correct value, use JRuby 1.1RC1 Message-ID: <20080109193948.3E32F18585F6@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080109/0a4b3baf/attachment.html From nobody at rubyforge.org Wed Jan 9 16:18:02 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 9 Jan 2008 16:18:02 -0500 (EST) Subject: [Jruby-extras-devel] [877] trunk/rails-integration/src/main/java/org/jruby/webapp: JRUBY-1913 - Avoid RubyIO.closed, which isn't in JRuby 1.1RC1 Message-ID: <20080109211802.2041318585C1@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080109/fc75ca49/attachment-0001.html From Darcy.L.Schultz at encana.com Wed Jan 9 16:49:35 2008 From: Darcy.L.Schultz at encana.com (Schultz, Darcy L.) Date: Wed, 9 Jan 2008 14:49:35 -0700 Subject: [Jruby-extras-devel] Problem with activerecord-jdbc-adapter and Oracle Message-ID: <2227418A794F18439AFC93F06689A4CEACB793@CGYEX005.encana.com> I'm using: Java 6 JRuby 1.0.3 Rails 2.0.2 activerecord-jdbc-adapter 0.7.1 When I try to persist an object to an Oracle table I get the following: Loading development environment (Rails 2.0.2) >> Person.find :all >> => [] p = Person.new >> => # p.name = 'Darcy' => "Darcy" >> p.save ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: ORA-01006: bind variable does not exist : INSERT INTO people (name) VALUES('Darcy') from D:/jruby-1.0.3/lib/ruby/gems/1.8/gems/activerecord-2.0.2-/lib/active_rec ord/transactions.rb:129:in `rollback_active_record_state!' from D:/jruby-1.0.3/lib/ruby/gems/1.8/gems/activerecord-2.0.2-/lib/active_rec ord/transactions.rb:108:in `save_with_transactions' from (irb):4:in `binding' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:150:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `signal_status' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:147:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `each_top_level_statement' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `loop' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `catch' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `start' from :1:in `catch' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:69:in `start' from :1 >> p.id = 1 >> => 1 p.save => true >> Person.find :all => [#] >> Is there anything else I need to do to work with Oracle? thanks, Darcy. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080109/0186cffc/attachment.html From Darcy.L.Schultz at encana.com Wed Jan 9 16:57:34 2008 From: Darcy.L.Schultz at encana.com (Schultz, Darcy L.) Date: Wed, 9 Jan 2008 14:57:34 -0700 Subject: [Jruby-extras-devel] Problem with activerecord-jdbc-adapter 0.7.1 and Oracle? Message-ID: <2227418A794F18439AFC93F06689A4CEACB794@CGYEX005.encana.com> I'm using: Java 6 JRuby 1.0.3 Rails 2.0.2 activerecord-jdbc-adapter 0.7.1 When I try to persist an object to an Oracle table I get the following: Loading development environment (Rails 2.0.2) >> Person.find :all >> => [] p = Person.new >> => # p.name = 'Darcy' => "Darcy" >> p.save ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: ORA-01006: bind variable does not exist : INSERT INTO people (name) VALUES('Darcy') from D:/jruby-1.0.3/lib/ruby/gems/1.8/gems/activerecord-2.0.2-/lib/active_rec ord/transactions.rb:129:in `rollback_active_record_state!' from D:/jruby-1.0.3/lib/ruby/gems/1.8/gems/activerecord-2.0.2-/lib/active_rec ord/transactions.rb:108:in `save_with_transactions' from (irb):4:in `binding' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:150:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `signal_status' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:147:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `each_top_level_statement' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `loop' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `catch' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `eval_input' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `start' from :1:in `catch' from D:/jruby-1.0.3/lib/ruby/1.8/irb.rb:69:in `start' from :1 >> p.id = 1 >> => 1 p.save => true >> Person.find :all => [#] >> Is there anything else I need to do to work with Oracle? thanks, Darcy. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080109/bf2fb79f/attachment.html From Darcy.L.Schultz at encana.com Wed Jan 9 17:43:18 2008 From: Darcy.L.Schultz at encana.com (Schultz, Darcy L.) Date: Wed, 9 Jan 2008 15:43:18 -0700 Subject: [Jruby-extras-devel] Problem with activerecord-jdbc-adapter and Oracle In-Reply-To: <2227418A794F18439AFC93F06689A4CEACB793@CGYEX005.encana.com> References: <2227418A794F18439AFC93F06689A4CEACB793@CGYEX005.encana.com> Message-ID: <2227418A794F18439AFC93F06689A4CEACB795@CGYEX005.encana.com> Just a follow-up... It fails with the same error in activerecord-jdbc-adapter 0.7 but works with 0.6. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080109/80efb81f/attachment.html From nobody at rubyforge.org Thu Jan 10 14:01:50 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Thu, 10 Jan 2008 14:01:50 -0500 (EST) Subject: [Jruby-extras-devel] [878] trunk/activerecord-jdbc/lib/jdbc_adapter/rake_tasks.rb: If the task doesn't exist previously, don't kak in redefine_task Message-ID: <20080110190150.D92A518585D8@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080110/83f661ba/attachment-0001.html From noreply at rubyforge.org Thu Jan 10 21:17:19 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 10 Jan 2008 21:17:19 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-14478 ] (solution provided) Oracle table names with schemas handled incorrectly . Message-ID: <20080111021719.2629318585CC@rubyforge.org> Bugs item #14478, was opened at 2007-10-05 06:28 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=14478&group_id=2014 Category: AR-JDBC Group: 0.2.3 Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: (solution provided) Oracle table names with schemas handled incorrectly . Initial Comment: When you try to do this: set_table_name "schema.tablename" with the Oracle adapter, scaffolding and other table info-gathering functions break. SVN commit #738 implements a fix for this problem in Postgres, and since the same problem exists for Oracle, I tried it and it fixed the oracle adapter. Just override the columns method as in Postgres fix #738 with the following: def columns(table_name, name=nil) if table_name =~ /\./ parts = table_name.split(/\./) table_name = parts.pop schema_name = parts.join(".") @connection.columns_internal(table_name, name, schema_name) else @connection.columns_internal(table_name, name) end end Regards, Bernie P.S. I tried submitting this to the Dev mailing list...anybody get that email? ---------------------------------------------------------------------- Comment By: Eric Gascoine (gencom-encana) Date: 2008-01-10 19:17 Message: This was very informative, and thanks, here's a fix to make it work consistently for schema names and to put it into context for less experienced developers: in environment.rb:. if RUBY_PLATFORM =~ /java/ require 'rubygems' gem 'activerecord-jdbc-adapter', ">=0.7" require 'jdbc_adapter' # the following is a hack to fix inserts for # activerecord-jdbc-adapter 0.7 module ::JdbcSpec module Oracle def columns(table_name, name=nil) if table_name =~ /\./ parts = table_name.split(/\./) my_table_name = parts.pop schema_name = parts.join(".") @connection.columns_internal(my_table_name, name, schema_name.upcase) else @connection.columns_internal(table_name, name) end end end end end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=14478&group_id=2014 From stephen.bannasch at deanbrook.org Sat Jan 12 22:50:49 2008 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Sat, 12 Jan 2008 22:50:49 -0500 Subject: [Jruby-extras-devel] test for ar-jdbc, patch for ar-jdbc-derby [JRUBY-1905] In-Reply-To: <476FF3E7.4070902@valadd.com> References: <476FF3E7.4070902@valadd.com> Message-ID: See issue and patch with tests and fix for: ALTER TABLE failure using jdbcderby during rails migration adding a column with 'not null' constraint http://jira.codehaus.org/browse/JRUBY-1905 Patch includes: New test for ar-jdbc. Fix for ar-jdbc-derby Test fails for Hsqldb. From nobody at rubyforge.org Sun Jan 13 01:12:24 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sun, 13 Jan 2008 01:12:24 -0500 (EST) Subject: [Jruby-extras-devel] [879] trunk/activerecord-jdbc: JRUBY-1905: add_column fix for derby and hsqldb (Stephen Bannasch) Message-ID: <20080113061224.A4C1018585C9@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080113/d129808a/attachment.html From stephen.bannasch at deanbrook.org Sun Jan 13 02:16:20 2008 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Sun, 13 Jan 2008 02:16:20 -0500 Subject: [Jruby-extras-devel] UPDATED: test for ar-jdbc, patch for ar-jdbc-derby [JRUBY-1905] Message-ID: The last patch had errors in both the tests and the fix. After I fixed the fix the test failed because the test was invalid. Now they are both fixed. http://jira.codehaus.org/browse/JRUBY-1905 Test once again fails for Hsqldb -- but it is probably easy to fix. From nobody at rubyforge.org Wed Jan 16 09:16:32 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 16 Jan 2008 09:16:32 -0500 (EST) Subject: [Jruby-extras-devel] [880] trunk/activerecord-jdbc/lib/jdbc_adapter/rake_tasks.rb: Fix db: create for JDBC Message-ID: <20080116141632.6A83D1858660@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080116/dae80978/attachment.html From nobody at rubyforge.org Thu Jan 17 09:46:05 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Thu, 17 Jan 2008 09:46:05 -0500 (EST) Subject: [Jruby-extras-devel] [881] trunk/activerecord-jdbc/src/java/jdbc_adapter/ JdbcAdapterInternalService.java: Fix for JRUBY-1966 Message-ID: <20080117144605.E088E18586AA@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080117/a1154a1f/attachment-0001.html From nobody at rubyforge.org Thu Jan 17 16:02:32 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Thu, 17 Jan 2008 16:02:32 -0500 (EST) Subject: [Jruby-extras-devel] [882] trunk/activerecord-jdbc/lib: - Fake out Rails by making it think that native adapter files have been loaded already Message-ID: <20080117210232.4215418586C5@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080117/46bc37ae/attachment.html From nobody at rubyforge.org Fri Jan 18 03:19:54 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Fri, 18 Jan 2008 03:19:54 -0500 (EST) Subject: [Jruby-extras-devel] [883] trunk/activerecord-jdbc/src/java/jdbc_adapter/ JdbcAdapterInternalService.java: Final fix for JRUBY-1966. Message-ID: <20080118081955.142D518586B1@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080118/eb9cd09e/attachment.html From noreply at rubyforge.org Tue Jan 22 01:46:20 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 22 Jan 2008 01:46:20 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17385 ] AR-JDBC-0.7.1 Oracle ActiveRecord::StatementInvalid when executing insert Statement Message-ID: <20080122064620.2BB0E18585E6@rubyforge.org> Bugs item #17385, was opened at 2008-01-22 01:46 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17385&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: AR-JDBC-0.7.1 Oracle ActiveRecord::StatementInvalid when executing insert Statement Initial Comment: Creating new Models doesn't work for me with 0.7.1, Read, Update and Delete does work fine. ActiveRecord::StatementInvalid in ProjectsController#create ActiveRecord::ActiveRecordError: Ung?ltiger Spaltenindex: INSERT INTO projects (created_at, connection_name, name, updated_at) VALUES(TIMESTAMP'2008-01-22 07:41:11', '123', '456', TIMESTAMP'2008-01-22 07:41:11') C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:132:in `insert' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.7.1/lib/jdbc_adapter/jdbc_oracle.rb:144:in `create' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:226:in `create_with_callbacks' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/timestamp.rb:29:in `create_with_timestamps' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2238:in `create_or_update' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:213:in `create_or_update_with_callbacks' C:/UserProg/011100/jruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1978:in `save!' [...] ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17385&group_id=2014 From nobody at rubyforge.org Tue Jan 22 11:12:04 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 22 Jan 2008 11:12:04 -0500 (EST) Subject: [Jruby-extras-devel] [884] trunk/activerecord-jdbc: Make test_oracle target. Message-ID: <20080122161204.C0F211858691@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080122/644d0a0b/attachment.html From noreply at rubyforge.org Wed Jan 23 16:42:51 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 23 Jan 2008 16:42:51 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17427 ] remove_column fails for MSSQL with AR-JDBC 0.7.1 Message-ID: <20080123214251.8EF1D18586BC@rubyforge.org> Bugs item #17427, was opened at 2008-01-23 21:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17427&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Matt Burke (spraints) Assigned to: Nobody (None) Summary: remove_column fails for MSSQL with AR-JDBC 0.7.1 Initial Comment: I filed this in JIRA, too, but I wanted to make sure it didn't get missed. A patch is included on the JIRA issue. http://jira.codehaus.org/browse/JRUBY-1977 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17427&group_id=2014 From noreply at rubyforge.org Wed Jan 23 16:43:59 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 23 Jan 2008 16:43:59 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17427 ] remove_column fails for MSSQL with AR-JDBC 0.7.1 Message-ID: <20080123214400.1596018586E5@rubyforge.org> Bugs item #17427, was opened at 2008-01-23 21:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17427&group_id=2014 Category: AR-JDBC Group: None Status: Open Resolution: None Priority: 3 Submitted By: Matt Burke (spraints) Assigned to: Nobody (None) Summary: remove_column fails for MSSQL with AR-JDBC 0.7.1 Initial Comment: I filed this in JIRA, too, but I wanted to make sure it didn't get missed. A patch is included on the JIRA issue. http://jira.codehaus.org/browse/JRUBY-1977 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17427&group_id=2014 From noreply at rubyforge.org Thu Jan 24 10:01:55 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 24 Jan 2008 10:01:55 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17450 ] Root cause of failure during rails initialization is lost Message-ID: <20080124150156.1B596185866D@rubyforge.org> Bugs item #17450, was opened at 2008-01-24 10:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17450&group_id=2014 Category: rails-integration Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Robert Egglestone (tantalon) Summary: Root cause of failure during rails initialization is lost Initial Comment: I also ran into this when I was getting started deploying into Tomcat. Anytime there was a problem during rails initialization I'd see that error looping in the logs. Contrary to the 'See the logs for more details' message I couldn't find any additional logging information in the server log(catalina.out) or any of the rails log files. As a quick fix I wound up applying the patch below to rails-integration to print the stack trace which did show me the underlying problem which was usually obvious once I could see full stack trace(In one case it was that I was developing on a Mac which was shielding some case sensitivity typos in require statements). I could swear I tried passing the original exception to the (String msg, Throwable rootCause) constructor of ServletException but that didn't dump the entire stack trace to the logs. Anyway, I think there is an issue with Goldspike swallowing exceptions. I'm guessing the Rails logging isn't usable before the Rails initialization is complete. Index: src/main/java/org/jruby/webapp/RailsFactory.java =================================================================== --- src/main/java/org/jruby/webapp/RailsFactory.java (revision 877) +++ src/main/java/org/jruby/webapp/RailsFactory.java (working copy) @@ -135,6 +135,7 @@ log("Rails init time: " + (System.currentTimeMillis() - startTime) + "ms");^M }^M } catch (RaiseException e) {^M + e.printStackTrace();^M logRubyException("Failed to load Rails", e);^M throw new ServletException("Could not load Rails. See the logs for more details.");^M }^M -lenny On Jan 23, 2008, at 11:07 PM, Nick Sieger wrote: On Jan 23, 2008 4:27 PM, Crall, Dennis P wrote: Hello all, I'm trying to deploy a Rails 2.0.2 app to Jruby. I'm using Warbler .9.2, Goldspike 1.5 snapshot, and Jruby 1.1RC1 (I've also tried 1.0.3). The war looks good. All my gems are present. I can view the Rails index.html page. But I can't see any of the dynamic pages. Tomcat returns: 503 The server is currently overloaded, please try again later In the log files, I see the following error: javax.servlet.ServletException: Could not load Rails. See the logs for more details. at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:139) at org.jruby.webapp.util.CustomObjectPool.addObjectInternal (CustomObjectPool.java:111) at org.jruby.webapp.util.CustomObjectPool.access$200 (CustomObjectPool.java:15) at org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run (CustomObjectPool.java:193) Is this a configuration that generate a working war file? If not, what is the recommended configuration for Rails 2? I know support of Rails 2 isn't solid yet, but it seems like some people have been successful. Is the error meaningful to anyone? Can you look a bit further up in the log file to see if there's a Ruby message? /Nick ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17450&group_id=2014 From nobody at rubyforge.org Thu Jan 24 10:11:47 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Thu, 24 Jan 2008 10:11:47 -0500 (EST) Subject: [Jruby-extras-devel] [885] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mysql.rb: Fix for JRUBY-2012, by Tyler Jennings Message-ID: <20080124151147.8E59F18586A6@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080124/8e2adcca/attachment.html From nobody at rubyforge.org Thu Jan 24 17:55:13 2008 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Thu, 24 Jan 2008 17:55:13 -0500 (EST) Subject: [Jruby-extras-devel] [886] trunk/activerecord-jdbc/lib/active_record/connection_adapters/ jdbc_adapter.rb: Fix for JRUBY-2018. Message-ID: <20080124225513.A041D16782B7@rubyforge.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20080124/9b5dc3fe/attachment.html From noreply at rubyforge.org Mon Jan 28 14:17:18 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 28 Jan 2008 14:17:18 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17450 ] Root cause of failure during rails initialization is lost Message-ID: <20080128191718.59BB01858667@rubyforge.org> Bugs item #17450, was opened at 2008-01-25 04:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17450&group_id=2014 Category: rails-integration Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Robert Egglestone (tantalon) Summary: Root cause of failure during rails initialization is lost Initial Comment: I also ran into this when I was getting started deploying into Tomcat. Anytime there was a problem during rails initialization I'd see that error looping in the logs. Contrary to the 'See the logs for more details' message I couldn't find any additional logging information in the server log(catalina.out) or any of the rails log files. As a quick fix I wound up applying the patch below to rails-integration to print the stack trace which did show me the underlying problem which was usually obvious once I could see full stack trace(In one case it was that I was developing on a Mac which was shielding some case sensitivity typos in require statements). I could swear I tried passing the original exception to the (String msg, Throwable rootCause) constructor of ServletException but that didn't dump the entire stack trace to the logs. Anyway, I think there is an issue with Goldspike swallowing exceptions. I'm guessing the Rails logging isn't usable before the Rails initialization is complete. Index: src/main/java/org/jruby/webapp/RailsFactory.java =================================================================== --- src/main/java/org/jruby/webapp/RailsFactory.java (revision 877) +++ src/main/java/org/jruby/webapp/RailsFactory.java (working copy) @@ -135,6 +135,7 @@ log("Rails init time: " + (System.currentTimeMillis() - startTime) + "ms");^M }^M } catch (RaiseException e) {^M + e.printStackTrace();^M logRubyException("Failed to load Rails", e);^M throw new ServletException("Could not load Rails. See the logs for more details.");^M }^M -lenny On Jan 23, 2008, at 11:07 PM, Nick Sieger wrote: On Jan 23, 2008 4:27 PM, Crall, Dennis P wrote: Hello all, I'm trying to deploy a Rails 2.0.2 app to Jruby. I'm using Warbler .9.2, Goldspike 1.5 snapshot, and Jruby 1.1RC1 (I've also tried 1.0.3). The war looks good. All my gems are present. I can view the Rails index.html page. But I can't see any of the dynamic pages. Tomcat returns: 503 The server is currently overloaded, please try again later In the log files, I see the following error: javax.servlet.ServletException: Could not load Rails. See the logs for more details. at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:139) at org.jruby.webapp.util.CustomObjectPool.addObjectInternal (CustomObjectPool.java:111) at org.jruby.webapp.util.CustomObjectPool.access$200 (CustomObjectPool.java:15) at org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run (CustomObjectPool.java:193) Is this a configuration that generate a working war file? If not, what is the recommended configuration for Rails 2? I know support of Rails 2 isn't solid yet, but it seems like some people have been successful. Is the error meaningful to anyone? Can you look a bit further up in the log file to see if there's a Ruby message? /Nick ---------------------------------------------------------------------- >Comment By: Robert Egglestone (tantalon) Date: 2008-01-29 08:17 Message: I think the problem is that the exception detail is going to the web app logger, but the ServletException is being shown on the Tomcat central log. If a logger is configured for the context then the messages would likely end up there, but looking at the newer versions of Tomcat, this doesn't appear to happen by default. I'll need to do some testing to confirm this, but if it's the case, then we can have Warbler add a default context file for Tomcat to the war, which includes a logger. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17450&group_id=2014 From noreply at rubyforge.org Thu Jan 31 11:04:01 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 31 Jan 2008 11:04:01 -0500 (EST) Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-17668 ] rmagick4j doesn't work with jruby 1.1 RC1 Message-ID: <20080131160402.028E018586EA@rubyforge.org> Bugs item #17668, was opened at 2008-01-31 11:04 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17668&group_id=2014 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: rmagick4j doesn't work with jruby 1.1 RC1 Initial Comment: Looks like some of the method signatures have changed in JRuby 1.1, so running rmagick4j fails to load. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7857&aid=17668&group_id=2014