org.jruby.exceptions.RaiseException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I'm experiencing the exception below on Windows 2008 r2/Windows 2012: ###################################################### Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599) at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) at LogStash::Event.to_json(file:/C:/logstash/logstash.jar!/logstash/event.rb:168) at LogStash::Outputs::Redis.receive(file:/C:/logstash/logstash.jar!/logstash/outputs/redis.rb:151) at LogStash::Outputs::Base.handle(file:/C:/logstash/logstash.jar!/logstash/outputs/base.rb:86) at RUBY.initialize((eval):17) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash::Pipeline.output(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:259) at RUBY.outputworker(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:218) at RUBY.start_outputs(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:145) ############################################# This happens randomly, but quite often ( several times per day ). Here's the configuration file: ########################################## input { eventlog { logfile => ["Application", "Security", "System", "Forwarded Events"] } } output { # stdout { codec => rubydebug } redis { host => "redis.example.com" data_type => "list" key => "eventlogs" } } ################################## The java implementation used is java sun jre7u51 . Different logstash instances on linux machines with openjdk 7u51 with output on the same redis server don't experience the crash. Do you need additional details ? Thank you very much,
    via by Santo Natale,
  • Getting this quite a bit: 2013-11-06_17:30:06.92724 {:timestamp=>"2013-11-06T17:30:06.926000+0000", :message=>"Failed to flush outgoing items", :outgoing_count=>18, :exception=>#<Encoding::InvalidByteSequenceError: ""\xDE"" on ASCII-8BIT>, :backtrace=>["org/jruby/RubyString.java:7596:in `encode'", "json/ext/GeneratorMethods.java:71:in `to_json'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/event.rb:156:in `to_json'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/elasticsearch.rb:163:in `flush'", "org/jruby/RubyArray.java:1613:in `each'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/elasticsearch.rb:158:in `flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1324:in `each'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1517:in `loop'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn} 2013-11-06_17:30:06.97237 Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xDE"" on ASCII-8BIT 2013-11-06_17:30:06.97246 at org.jruby.RubyString.encode(org/jruby/RubyString.java:7596) 2013-11-06_17:30:06.97247 at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) 2013-11-06_17:30:06.97247 at LogStash::Event.to_json(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/event.rb:156) 2013-11-06_17:30:06.97248 at LogStash::Codecs::JSON.encode(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/codecs/json.rb:37) 2013-11-06_17:30:06.97248 at LogStash::Outputs::Tcp.receive(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/tcp.rb:142) 2013-11-06_17:30:06.97249 at LogStash::Outputs::Base.handle(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/base.rb:85) 2013-11-06_17:30:06.97250 at RUBY.initialize((eval):117) 2013-11-06_17:30:06.97251 at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) 2013-11-06_17:30:06.97253 at LogStash::Pipeline.output(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:254) 2013-11-06_17:30:06.97254 at RUBY.outputworker(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:213) 2013-11-06_17:30:06.97255 at RUBY.start_outputs(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:140)
    via by Scott Smith,
    • org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599) at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71)
    No Bugmate found.