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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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)

    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