undefined `cfg' for JdbcSpec::DB2:Module exception
--------------------------------------------------
Key: JRUBY-3507
URL: http://jira.codehaus.org/browse/JRUBY-3507
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.2, ActiveRecord-JDBC-0.9.1
Environment: JRuby 1.2.0, Rails 2.2.2, activerecord-jdbc 0.9.1, IBM
Java 1.6.0 SR3
Reporter: Nicholas J Kreucher
After upgrading activerecord-jdbc-adapter from 0.9 to 0.9.1, this exception is
raised during initialization of the jdbc adapter:
NameError (undefined local variable or method `cfg' for JdbcSpec::DB2:Module):
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/jdbc_adapter/jdbc_db2.rb:5:in
`adapter_matcher'
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:476:in
`adapter_spec'
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:474:in
`each'
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:474:in
`adapter_spec'
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:454:in
`initialize'
/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:53:in
`jdbc_connection'
/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
Note, switching back to version 0.9 works fine, even with JRuby 1.2.0.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email