Skip to content

Instantly share code, notes, and snippets.

@cdwillie76
Last active December 15, 2015 07:59
Show Gist options
  • Save cdwillie76/5227772 to your computer and use it in GitHub Desktop.
Save cdwillie76/5227772 to your computer and use it in GitHub Desktop.
Information about logstash null pointer exception when doing the standalone demo
OSX 10.6.8
java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-10M4203)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
java -jar logstash-1.1.9-monolithic.jar agent -f logstash-simple.conf -- web --backend elasticsearch:///?local
test
{"@source":"stdin://chris-williamss-macbook-pro.local/","@tags":[],"@fields":{},"@timestamp":"2013-03-17T15:42:40.758Z","@source_host":"chris-williamss-macbook-pro.local","@source_path":"/","@message":"","@type":"stdin-type"}
test
{"@source":"stdin://chris-williamss-macbook-pro.local/","@tags":[],"@fields":{},"@timestamp":"2013-03-17T15:42:45.592Z","@source_host":"chris-williamss-macbook-pro.local","@source_path":"/","@message":"test","@type":"stdin-type"}
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/version.rb:4 warning: already initialized constant VERSION
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/version.rb:5 warning: already initialized constant VERSION_ARRAY
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/version.rb:6 warning: already initialized constant VERSION_MAJOR
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/version.rb:7 warning: already initialized constant VERSION_MINOR
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/version.rb:8 warning: already initialized constant VERSION_BUILD
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/common.rb:100 warning: already initialized constant NaN
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/common.rb:102 warning: already initialized constant Infinity
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/common.rb:104 warning: already initialized constant MinusInfinity
jar:file:/Users/chriswilliams/projects/logstash/logstash-1.1.9-monolithic.jar!/gems/json-1.7.6-java/lib/json/common.rb:129 warning: already initialized constant UnparserError
colparse
logfile
thread
remaining
test
Output thread exception {:plugin=>#<LogStash::Outputs::Stdout:0x69fba118 @fields=[], @message="%{@timestamp} %{@source}: %{@message}", @tags=[], @type="", @config={"debug"=>true, "debug_format"=>"json", "type"=>"", "tags"=>[], "exclude_tags"=>[], "fields"=>[], "message"=>"%{@timestamp} %{@source}: %{@message}"}, @debug_format="json", @params={"debug"=>true, "debug_format"=>"json", "type"=>"", "tags"=>[], "exclude_tags"=>[], "fields"=>[], "message"=>"%{@timestamp} %{@source}: %{@message}"}, @print_method=#<Method: LogStash::Outputs::Stdout(Kernel)#p>, @debug=true, @logger=#<LogStash::Logger:0x70d6504 @target=#<IO:fd 2>, @subscriber_lock=#<Mutex:0x5ec47b08>, @data={}, @metrics=#<Cabin::Metrics:0x35697ad3 @channel=#<Cabin::Channel:0x1ffece0a @subscriber_lock=#<Mutex:0x118902ef>, @metrics=#<Cabin::Metrics:0x3a1fa1e7 @channel=#<Cabin::Channel:0x1ffece0a ...>, @metrics={}, @metrics_lock=#<Mutex:0x72be6280>>, @data={}, @subscribers={}, @level=:info>, @metrics={}, @metrics_lock=#<Mutex:0x3134fc5a>>, @subscribers={2030=>#<Cabin::Outputs::IO:0x18fab9c1 @io=#<IO:fd 2>, @lock=#<Mutex:0x74b93ab6>>}, @level=:warn>, @exclude_tags=[]>, :exception=>java.lang.NullPointerException, :backtrace=>["json.ext.GeneratorState.fromState(GeneratorState.java:147)", "json.ext.Generator$Session.getState(Generator.java:127)", "json.ext.Generator$5.guessSize(Generator.java:312)", "json.ext.Generator$5.guessSize(Generator.java:309)", "json.ext.Generator$Handler.generateNew(Generator.java:171)", "json.ext.Generator.generateJson(Generator.java:36)", "json.ext.GeneratorMethods$RbHash.to_json(GeneratorMethods.java:71)", "json.ext.GeneratorMethods$RbHash$INVOKER$s$0$0$to_json.call(GeneratorMethods$RbHash$INVOKER$s$0$0$to_json.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:642)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:196)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)", "org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:65)", "org.jruby.ast.ReturnNode.interpret(ReturnNode.java:92)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)", "org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139)", "org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:172)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)", "org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)", "org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.ast.BlockNode.interpret(BlockNode.java:71)", "org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)", "org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)", "org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:197)", "org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128)", "org.jruby.runtime.Block.call(Block.java:89)", "org.jruby.RubyProc.call(RubyProc.java:261)", "org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:64)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)", "org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.ast.BlockNode.interpret(BlockNode.java:71)", "org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)", "org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)", "org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:188)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)", "org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.ast.BlockNode.interpret(BlockNode.java:71)", "org.jruby.ast.WhileNode.interpret(WhileNode.java:131)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)", "org.jruby.ast.RescueNode.interpret(RescueNode.java:119)", "org.jruby.ast.BeginNode.interpret(BeginNode.java:83)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.ast.BlockNode.interpret(BlockNode.java:71)", "org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)", "org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)", "org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)", "org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:41)", "org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)", "org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)", "org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)", "org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:197)", "org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128)", "org.jruby.runtime.Block.call(Block.java:89)", "org.jruby.RubyProc.call(RubyProc.java:261)", "org.jruby.RubyProc.call(RubyProc.java:213)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:98)", "java.lang.Thread.run(Thread.java:680)"], :level=>:warn}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment