Rails 3.2 activerecord-jdbc-adapter错误

时间:2012-02-19 14:00:14

标签: jruby

我刚刚更新到在JRuby-1.6.5上运行的rails 3.2,当我运行rake db:migrate时,我收到以下错误:

  

未定义的方法`accept'代表nil:NilClass

这是跟踪:

  

/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in   to_sql' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:36:in select_values'   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:571:in   get_all_versions' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:729:in 迁移”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:652:in   current_version' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:669:in migrate'org / jruby / RubyEnumerable.java:552:in detect' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:669:in migrate'   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:554:in   up' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:535:in 迁移”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/railties/databases.rake:153:in   (root)' org/jruby/RubyProc.java:258:in称之为”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:205:in   execute' org/jruby/RubyArray.java:1612:in每个”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:200:in   execute' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:158:in invoke_with_call_chain'   /Users/paulcowan/.rvm/rubies/jruby-1.6.5/lib/ruby/1.9/monitor.rb:201:in   mon_synchronize' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain'   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:144:in   invoke' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:94:in   top_level' org/jruby/RubyArray.java:1612:in每个”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:94:in   top_level' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:88:in   top_level' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:66:in 运行”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:133:in   standard_exception_handling' /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:63:in 运行”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/bin/rake:33:in   (root)' org/jruby/RubyKernel.java:1073:in负载”   /Users/paulcowan/.rvm/gems/jruby-1.6.5/bin/rake:19:in`(root)'任务:   TOP =>分贝:迁移

错误似乎来自activerecord-jdbc-adapter。

我在我的gem文件中引用了master:

gem 'activerecord-jdbc-adapter', :git => "https://github.com/nicksieger/activerecord-jdbc-adapter.git", :branch => 'master'

是否有其他人有此错误或有解决方案。

0 个答案:

没有答案