org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xB9"" on ASCII-8BIT

GitHub | lexelby | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    exception in output thread silently locks up logstash

    GitHub | 2 years ago | lexelby
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xB9"" on ASCII-8BIT
  2. 0

    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)

    JIRA | 3 years ago | Scott Smith
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xDE"" on ASCII-8BIT
  3. 0

    I got the following error when I enable Windows servers to send Eventlogs via NXLog to Logstash: Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xE2"" 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:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/event.rb:157) at LogStash::Outputs::File.receive(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/outputs/file.rb:72) at LogStash::Outputs::Base.handle(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/outputs/base.rb:86) at RUBY.initialize((eval):269) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash::Pipeline.output(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:259) at RUBY.outputworker(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:218) at RUBY.start_outputs(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:145) After this logstash exists. The problem is connected to the file output module. If I enable it it dies in a minute, without it it is stable. The relevant output config is: file { path => "/var/log/logstash-export/%{+YYYY-MM-dd}/% {host} /% {source} .log" codec => plain { charset => "UTF-8" } } Original issue was LOGSTASH-1595.

    JIRA | 3 years ago | Laszlo Toth
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xE2"" on ASCII-8BIT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      (InvalidByteSequenceError) ""\xB9"" on ASCII-8BIT

      at org.jruby.RubyString.encode()
    2. JRuby Main Maven Artifact
      RubyString.encode
      1. org.jruby.RubyString.encode(org/jruby/RubyString.java:7599)
      1 frame
    3. json.ext
      GeneratorMethods$RbHash.to_json
      1. json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71)
      1 frame