JRuby

activerecord-jdbc-adapter 0.9.1 problem with MSSQL - uninitialized constant ActiveRecord::VERSION (NameError)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    tested with Jruby 1.1.5 - 1.2, database MSSQLEXPRESS 2005, os WINXP, rails 2.1.2, app Redmine 0.8.2
  • Number of attachments :
    0

Description

=> Booting WEBrick...
C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:279:in `load_missing_constant': uninitialized constant ActiveRecord::VERSION (NameError)
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
from C:/App/jruby12/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:14
from C:/App/jruby12/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:31:in `require'
from C:/App/jruby12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:227:in `establish_connection'
... 18 levels...
from C:/App/Ruby187/rails_apps/Redmine/vendor/rails/railties/lib/commands/server.rb:31:in `require'
from C:/App/jruby12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script\server:3

Activity

Hide
Nick Sieger added a comment -

Seems we lost a "require 'active_record/version'" somewhere. You can add it to your environment.rb as a workaround.

Thanks for the report.

Show
Nick Sieger added a comment - Seems we lost a "require 'active_record/version'" somewhere. You can add it to your environment.rb as a workaround. Thanks for the report.
Hide
Nick Sieger added a comment -

Ensured that active_record/version is loaded by jdbc_adapter in 0.9.2.

Show
Nick Sieger added a comment - Ensured that active_record/version is loaded by jdbc_adapter in 0.9.2.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: