Skip to content

Instantly share code, notes, and snippets.

@bpardee
Created September 21, 2016 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpardee/9059ac69b2dd1e46e0232d5fd542fb94 to your computer and use it in GitHub Desktop.
Save bpardee/9059ac69b2dd1e46e0232d5fd542fb94 to your computer and use it in GitHub Desktop.
Intermittent count error in Rails 4.2.7.1
undefined method `visit_Arel_Nodes_Casted' for #<Arel::Visitors::DepthFirst:0x7dc2a61b>
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:63binary
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:17unary
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:57block in nary
org/jruby/RubyArray.java:1734each
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:57nary
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:169block in visit_Array
org/jruby/RubyArray.java:1734each
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:169visit_Array
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:146visit_Arel_Nodes_SelectCore
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:169block in visit_Array
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:169visit_Array
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:153visit_Arel_Nodes_SelectStatement
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:9accept
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/nodes/node.rb:56each
org/jruby/RubyEnumerable.java:580grep
org/jruby/RubyEnumerable.java:554grep
vendor/bundle/jruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/calculations.rb:216perform_calculation
vendor/bundle/jruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/calculations.rb:133calculate
vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/active_record_helper.rb:70block in calculate
vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent.rb:571with_database_metric_name
vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/active_record_helper.rb:69calculate
vendor/bundle/jruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/calculations.rb:48count
app/models/ach_transaction.rb:204create_or_update_previous
end
# handles re-presentments
if current_ach && prior_returns.count > 0 && inbound_ach.return_code.nil?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment