#4 ✓resolved
Jens

ArgumentError: Cannot delete for arg of type Fixnum on Rails 2.2.2

Reported by Jens | February 13th, 2010 @ 12:35 AM

Today, I installed acts_as_ferret (0.4.4) in one production server, and tried to deploy my application, but indexing just didn't work. Looking at the logs, I saw the following error:

ArgumentError: Cannot delete for arg of type Fixnum

    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:123:in `batch_delete'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:116:in `each'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:116:in `batch_delete'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:82:in `update_batch'
    from /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:8:in `synchrolock'
    from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:8:in `synchrolock'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:81:in `update_batch'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/bulk_indexer.rb:21:in `index_records'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/bulk_indexer.rb:32:in `measure_time'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/bulk_indexer.rb:18:in `index_records'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:52:in `index_model'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/class_methods.rb:84:in `records_for_rebuild'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/class_methods.rb:83:in `step'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/class_methods.rb:83:in `records_for_rebuild'
    from /var/www/matricula/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `transaction'
    from /var/www/matricula/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `transaction'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/class_methods.rb:74:in `records_for_rebuild'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:51:in `index_model'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:39:in `index_models'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:39:in `each'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/ferret_extensions.rb:39:in `index_models'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/local_index.rb:54:in `rebuild_index'
    from /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/class_methods.rb:28:in `rebuild_index'

I reverted to Acts as Ferret version 0.4.3, and everything works.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages