org.jruby.exceptions.RaiseException: (TypeError) exception class/object expected at MarchHare::Exceptions.convert_and_reraise(file:/opt/logstash/logstash.jar!/march_hare/exceptions.rb:120) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:932) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:930) at MarchHare::Channel.basic_publish(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:572) at MarchHare::Exchange.publish(file:/opt/logstash/logstash.jar!/march_hare/exchange.rb:76) at LogStash::Outputs::RabbitMQ::MarchHareImpl.publish_serialized(file:/opt/logstash/logstash.jar!/logstash/outputs/rabbitmq/march_hare.rb:41)

JIRA | Nathan Flynn | 3 years ago
  1. 0

    After a period of time normally within 24hours I find logstash exits with the following error message. I use the rabbitmq output. {noformat} Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (TypeError) exception class/object expected at MarchHare::Exceptions.convert_and_reraise(file:/opt/logstash/logstash.jar!/march_hare/exceptions.rb:120) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:932) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:930) at MarchHare::Channel.basic_publish(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:572) at MarchHare::Exchange.publish(file:/opt/logstash/logstash.jar!/march_hare/exchange.rb:76) at LogStash::Outputs::RabbitMQ::MarchHareImpl.publish_serialized(file:/opt/logstash/logstash.jar!/logstash/outputs/rabbitmq/march_hare.rb:41) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash::Codecs::JSON.encode(file:/opt/logstash/logstash.jar!/logstash/codecs/json.rb:45) at LogStash::Outputs::RabbitMQ::MarchHareImpl.receive(file:/opt/logstash/logstash.jar!/logstash/outputs/rabbitmq/march_hare.rb:31) at LogStash::Outputs::Base.handle(file:/opt/logstash/logstash.jar!/logstash/outputs/base.rb:86) at RUBY.worker_setup(file:/opt/logstash/logstash.jar!/logstash/outputs/base.rb:78) {noformat} The config is; {noformat} rabbitmq { exchange => "logstash" exchange_type => "topic" persistent => false host => "amqp01.admin.boob.net.uk" port => 5672 vhost => "/logstash" user => "logstash" password => "blahblah" workers => 3 key => "logstash" } {noformat}

    JIRA | 3 years ago | Nathan Flynn
    org.jruby.exceptions.RaiseException: (TypeError) exception class/object expected at MarchHare::Exceptions.convert_and_reraise(file:/opt/logstash/logstash.jar!/march_hare/exceptions.rb:120) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:932) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:930) at MarchHare::Channel.basic_publish(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:572) at MarchHare::Exchange.publish(file:/opt/logstash/logstash.jar!/march_hare/exchange.rb:76) at LogStash::Outputs::RabbitMQ::MarchHareImpl.publish_serialized(file:/opt/logstash/logstash.jar!/logstash/outputs/rabbitmq/march_hare.rb:41)
  2. 0

    GitHub comment 160#35701642

    GitHub | 3 years ago | rachin-fab
    org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:159) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:180)
  3. 0

    ConcurrencyError in Lumberjack + Logstash

    GitHub | 3 years ago | abhaykumar
    org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:159) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:180)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    While backfilling Logstash with old logs, Logstash crashed with the following stack trace: {noformat} Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `<<' for nil:NilClass at LogStash::Filters::Grok.filter(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb:369) at Grok::Match.each_capture(jar:file:/opt/logstash/logstash-1.1.9-monolithic.jar!/gems/jls-grok-0.10.10/lib/grok/pure/match.rb:23) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612) at Grok::Match.each_capture(jar:file:/opt/logstash/logstash-1.1.9-monolithic.jar!/gems/jls-grok-0.10.10/lib/grok/pure/match.rb:21) at LogStash::Filters::Grok.filter(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb:317) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612) at LogStash::Filters::Grok.filter(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb:301) at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1257) at LogStash::Filters::Grok.filter(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb:292) at LogStash::FilterWorker.flusher(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filterworker.rb:50) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612) at LogStash::FilterWorker.flusher(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filterworker.rb:48) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612) at LogStash::FilterWorker.flusher(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filterworker.rb:45) at RUBY.run(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filterworker.rb:29) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:249) at RUBY.interval(jar:file:/opt/logstash/logstash-1.1.9-monolithic.jar!/gems/stud-0.0.8/lib/stud/interval.rb:11) at RUBY.run(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filterworker.rb:29) {noformat} From what I can see, event.fields[key] ||= [] (grok.rb:368) isn't behaving as expected and when Logstash tries to push to event.fields[key] on the next line, it's still nil. Perhaps I'm wrong, I don't really know Ruby, I can just about read it, and Googled for information I didn't know. Thanks, Daniel EDIT: Just to add, those line numbers are from the grok.rb contained in the 1.1.9 jar and don't correspond with the current git tree.

    JIRA | 4 years ago | Daniel Brierton
    org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `<<' for nil:NilClass at LogStash::Filters::Grok.filter(file:/opt/logstash/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb:369) at Grok::Match.each_capture(jar:file:/opt/logstash/logstash-1.1.9-monolithic.jar!/gems/jls-grok-0.10.10/lib/grok/pure/match.rb:23)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (TypeError) exception class/object expected at MarchHare::Exceptions.convert_and_reraise(file:/opt/logstash/logstash.jar!/march_hare/exceptions.rb:120) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:932) at MarchHare::Channel.converting_rjc_exceptions_to_ruby(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:930) at MarchHare::Channel.basic_publish(file:/opt/logstash/logstash.jar!/march_hare/channel.rb:572) at MarchHare::Exchange.publish(file:/opt/logstash/logstash.jar!/march_hare/exchange.rb:76) at LogStash::Outputs::RabbitMQ::MarchHareImpl.publish_serialized(file:/opt/logstash/logstash.jar!/logstash/outputs/rabbitmq/march_hare.rb:41)

      at org.jruby.RubyProc.call()
    2. JRuby Main Maven Artifact
      RubyProc.call
      1. org.jruby.RubyProc.call(org/jruby/RubyProc.java:271)
      1 frame