Troubleshooting "undefined class/module"

S

steve.enzer

I'm having a bit of a headbanger here... maybe someone can help.

A class in a fairly complicated existing Rails app that I'm working on
seems intermittently not to load.
The error is basically the following:

undefined class/module InnerPackage

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session/active_record_store.rb:75:in
`load'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session/active_record_store.rb:75:in
`unmarshal'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session/active_record_store.rb:116:in
`data'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session/active_record_store.rb:126:in
`marshal_data!'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:333:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:333:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:330:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:330:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:248:in
`create_or_update'
<snip>

I've seen this happen if the controller file has a syntax error, but
that's not it. I'm interested mostly hearing a debugging approach that
I haven't tried, or if you've banged your head on this one before, what
you learned in doing so.

The model file is in app_root/app/models
The problem is intermittent, and goes away for a while if I restart
WEBrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Newbie help 4
File upload help 3
Rails ADODB.Connection Error 11
Net::SSH Problems 0
Problems sending mail with gmail and SMTP 1
NoMethodError 0
Error: uninitialized constant Mysql::Protocol::UNIXSocket 12
Scaffold: 3

Members online

Forum statistics

Threads
473,796
Messages
2,569,645
Members
45,362
Latest member
OrderTrimKetoBoost

Latest Threads

Top