Forum: Ferret Error: uninitialized constant LockError

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
peter (Guest)
on 2007-02-02 19:57
(Received via mailing list)
Hey Guys.  So, I get this error every so often, and in sneaking at the
code,
it seems that it could be an easy fix, where it's looking for a
LockError,
but I think it's a LockException.

I'm on 0.10.13 with a very large index (about a million docs) that's
staged
on several servers, which are updated daily.  (Using rails 1.1.6)

Thanks for all the hard work.

Here's the stack trace:

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc
ies.rb:123:in `const_missing'

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc
ies.rb:133:in `const_missing'
       /usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:674:in
`ensure_reader_open'
       /usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:383:in
`[]'
       /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize'
       /usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:382:in
`[]'
       /var/ruby/ioffer.com/app/current/app/models/item.rb:878:in
`convert_search_hits_to_items'
       /var/ruby/ioffer.com/app/current/app/models/item.rb:877:in
`convert_search_hits_to_items'

/var/ruby/ioffer.com/app/current/app/controllers/search_controller.rb:221:in
`list'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:
941:in `perform_action_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.
rb:368:in `perform_action_without_benchmark'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmar
king.rb:69:in `perform_action_without_rescue'
       /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmar
king.rb:69:in `perform_action_without_rescue'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.r
b:82:in `perform_action'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:
408:in `process_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.
rb:377:in `process_without_session_management_support'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_
management.rb:117:in `process'
       /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel/rails.rb:78:in
`process'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel/rails.rb:76:in
`process'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel.rb:618:in
`process_client'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel.rb:617:in
`process_client'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel.rb:736:in
`run'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel.rb:736:in
`run'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel.rb:720:in
`run'

/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel/configurator.rb:271:i
n `run'

/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel/configurator.rb:270:i
n `run'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/bin/mongrel_rails:127:in
`run'

/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/lib/mongrel/command.rb:211:in
`run'
       /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.20/bin/mongrel_rails:243
       /usr/bin/mongrel_rails:18
This topic is locked and can not be replied to.