Issue with ActiveRecord::ConnectionAdapters::AbstractAdapter with oracle_enhanced and Rails 3.1.1

85 views
Skip to first unread message

jason

unread,
Oct 18, 2011, 3:48:56 PM10/18/11
to Composite Keys for ActiveRecord
I posted this to the oracle_enhanced list b/c that was at the top of
the backtrace, but I think I've narrowed this down to CPK 4.0.0 with
Rails 3.1.1 (when I remove the gem, everything works...)

I'm a bit confused as to what's happening, wondering if someone can
nudge me in the right direction to fix this up...

[master][~/code/jcardapi] rails c
Warning: NLS_LANG is not set. fallback to US-ASCII.
/Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-
oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/
oracle_enhanced_adapter.rb:109:in `<module:ConnectionAdapters>':
uninitialized constant
ActiveRecord::ConnectionAdapters::AbstractAdapter (NameError)
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-
oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/
oracle_enhanced_adapter.rb:44:in `<module:ActiveRecord>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-
oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/
oracle_enhanced_adapter.rb:43:in `<top (required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-
oracle_enhanced-adapter-1.4.0/lib/activerecord-oracle_enhanced-
adapter.rb:12:in `block in <class:OracleEnhancedRailtie>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:36:in
`instance_eval'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:36:in
`execute_hook'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:43:in `block
in run_load_hooks'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:42:in
`run_load_hooks'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activerecord-3.1.1/lib/active_record/base.rb:2190:in `<top
(required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activerecord-3.1.1/lib/active_record/connection_adapters/abstract/
connection_specification.rb:2:in `<module:ActiveRecord>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activerecord-3.1.1/lib/active_record/connection_adapters/abstract/
connection_specification.rb:1:in `<top (required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activerecord-3.1.1/lib/active_record/connection_adapters/
abstract_adapter.rb:14:in `<top (required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
composite_primary_keys-4.0.0/lib/composite_primary_keys.rb:55:in `<top
(required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:68:in `require'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:66:in `each'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:66:in `block in require'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:55:in `each'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler/runtime.rb:55:in `require'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/
lib/bundler.rb:122:in `require'
from /Users/jlewis73/code/jcardapi/config/application.rb:14:in `<top
(required)>'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/
lib/rails/commands.rb:38:in `require'
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/
lib/rails/commands.rb:38:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

m13...@yahoo.com

unread,
Oct 19, 2011, 2:30:48 PM10/19/11
to compos...@googlegroups.com
For some reason nobody responds on this group. Maybe we are posting these problems in the wrong place.

--- On Tue, 10/18/11, jason <jasonl...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Composite Keys for ActiveRecord" group.
To post to this group, send email to compos...@googlegroups.com.
To unsubscribe from this group, send email to compositekeys+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compositekeys?hl=en.

Jason Lewis

unread,
Oct 19, 2011, 4:12:06 PM10/19/11
to compos...@googlegroups.com
Yeah... there used to be more activity, but ti seems like Github Issues is more likely to elicit a response.

Jason Lewis

Email          jasonl...@gmail.com     

Twitter        @canweriotnow

Blog            http://duckpunching.github.com/



To unsubscribe from this group, send email to compositekey...@googlegroups.com.

cfis

unread,
Oct 19, 2011, 10:13:01 PM10/19/11
to Composite Keys for ActiveRecord
Hey Jason,

Nothing obvious jumps to mind...there isn't any oracle specific
functionality in CPK. Do the Oracle tests work for you?

The error should be fairly easy to trackdown:

oracle_enhanced_adapter.rb:109:in `<module:ConnectionAdapters>':
uninitialized constant
ActiveRecord::ConnectionAdapters::AbstractAdapter (NameError)
from /Users/jlewis73/.rvm/gems/ruby-1.9.2-p290/gems/
activerecord-
oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/
oracle_enhanced_adapter.rb:44:in `<module:ActiveRecord>'

That class is part of Rails, so I'd guess a load order issue where the
Oracle adapter is loading its version too soon or maybe CPK.

Charlie



On Oct 19, 2:12 pm, Jason Lewis <jasonlewi...@gmail.com> wrote:
> Yeah... there used to be more activity, but ti seems like Github Issues is
> more likely to elicit a response.
>
> Jason Lewis
>
> Email          jasonlewi...@gmail.com
>
> Twitter        @canweriotnow <http://twitter.com/canweriotnow>
>
> Bloghttp://duckpunching.github.com/<http://duckpunching.wordpress.com/>
>
>
>
>
>
>
>
> On Wed, Oct 19, 2011 at 2:30 PM, m13...@yahoo.com <m13...@yahoo.com> wrote:
> > For some reason nobody responds on this group. Maybe we are posting these
> > problems in the wrong place.
>
> > --- On *Tue, 10/18/11, jason <jasonlewi...@gmail.com>* wrote:
> > To post to this group, send email to compos...@googlegroups.com<http://mc/compose?to=compos...@googlegroups.com>
> > .
> > To unsubscribe from this group, send email to compositekeys+
> > unsub...@googlegroups.com<http://mc/compose?to=unsub...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages