Mitch Monmouth
2007-Aug-30 21:36 UTC
[Ferret-talk] Method missing error after switching to DRB
I am getting these errors after switchign to dRb: It is trying to call ''add'' on MY SourceListing class, not extended with the ferret indexing methods. Any ideas on where to fix this? I''m combing through the code now. no luck, trying to call class method instead ferret server error undefined method `add'' for SourceListing:Class /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1235:in `method_missing'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in `send'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in `method_missing'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:113:in `with_class'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:62:in `method_missing'' /usr/lib/ruby/1.8/drb/drb.rb:1555:in `__send__'' /usr/lib/ruby/1.8/drb/drb.rb:1555:in `perform_without_block'' /usr/lib/ruby/1.8/drb/drb.rb:1515:in `perform'' /usr/lib/ruby/1.8/drb/drb.rb:1589:in `main_loop'' /usr/lib/ruby/1.8/drb/drb.rb:1585:in `loop'' /usr/lib/ruby/1.8/drb/drb.rb:1585:in `main_loop'' /usr/lib/ruby/1.8/drb/drb.rb:1581:in `start'' /usr/lib/ruby/1.8/drb/drb.rb:1581:in `main_loop'' /usr/lib/ruby/1.8/drb/drb.rb:1430:in `run'' /usr/lib/ruby/1.8/drb/drb.rb:1427:in `start'' /usr/lib/ruby/1.8/drb/drb.rb:1427:in `run'' /usr/lib/ruby/1.8/drb/drb.rb:1347:in `initialize'' /usr/lib/ruby/1.8/drb/drb.rb:1627:in `new'' /usr/lib/ruby/1.8/drb/drb.rb:1627:in `start_service''\n/var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:47:in `start'' (eval):55 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `eval'' /var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:45 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/runner:3 and on the other side: Exception: NoMethodError: undefined method `add'' for SourceListing:Class (druby://localhost:9010) /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1235:in `method_missing'' (druby://localhost:9010) /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in `send'' (druby://localhost:9010) /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in `method_missing'' (druby://localhost:9010) /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:113:in `with_class'' (druby://localhost:9010) /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:62:in `method_missing'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/remote_index.rb:31:in `<<'' /var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/instance_methods.rb:73:in `ferret_create'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:333:in `send'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:333:in `callback'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:330:in `each'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:330:in `callback'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:255:in `create_without_timestamps'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/timestamp.rb:39:in `create'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1789:in `create_or_update_without_callbacks'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:242:in `create_or_update'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1545:in `save_without_validation'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:752:in `save_without_transactions'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:121:in `transaction'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'' (eval):134:in `process_listing'' (eval):50:in `proc_uris'' (eval):34:in `each'' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070830/fbe39974/attachment.html