java.lang.NumberFormatException: For input string: ""

JIRA | Jamie Milburn | 3 years ago
  1. 0

    Trying to upgrade from 1.1.12 to 1.2. ES version is 0.90.2. Current setup works fine as is but when I tried to upgrade, some logs get through to ES and the majority don't. The error in LS log is - {code} {:timestamp=>"2013-09-05T16:11:50.640000+0100", :message=>"Failed to flush outgoing items", :outgoing_count=>1950, :exception=>#<Errno::EPIPE: Broken pipe - Broken pipe>, :backtrace=>["org/jruby/RubyIO.java:1297:in `syswrite'", "jar:file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/connection.rb:210:in `write'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "org/jruby/RubyArray.java:1617:in `each'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:64:in `write_http_body'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/request.rb:78:in `execute'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/agent.rb:313:in `execute'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/agent.rb:205:in `post!'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:82:in `post'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:77:in `flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1332:in `each'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1489:in `loop'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn} {code} At the same time, the error in Elasticsearch log is - {code} [2013-09-05 16:11:50,860][WARN ][http.netty ] [log1] Caught exception while handling client http traffic, closing connection [id: 0xb25ee957, /192.168.1.176:57272 :> /192.168.1.176:9200] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:554) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireChannelDisconnected(Channels.java:396) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:361) at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:81) at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779) at org.elasticsearch.common.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.elasticsearch.common.netty.channel.Channels.close(Channels.java:812) at org.elasticsearch.common.netty.channel.AbstractChannel.close(AbstractChannel.java:197) at org.elasticsearch.http.netty.NettyHttpServerTransport.exceptionCaught(NettyHttpServerTransport.java:306) at org.elasticsearch.http.netty.HttpRequestHandler.exceptionCaught(HttpRequestHandler.java:49) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.exceptionCaught(SimpleChannelUpstreamHandler.java:153) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.elasticsearch.common.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:48) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.notifyHandlerException(DefaultChannelPipeline.java:658) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:566) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {code} Note that this setup works fine in Logstash 1.1.12 and I am unsure how to narrow down which config/logs are causing this from the 110 shippers I have.

    JIRA | 3 years ago | Jamie Milburn
    java.lang.NumberFormatException: For input string: ""
  2. 0

    Trying to upgrade from 1.1.12 to 1.2. ES version is 0.90.2. Current setup works fine as is but when I tried to upgrade, some logs get through to ES and the majority don't. The error in LS log is - {code} {:timestamp=>"2013-09-05T16:11:50.640000+0100", :message=>"Failed to flush outgoing items", :outgoing_count=>1950, :exception=>#<Errno::EPIPE: Broken pipe - Broken pipe>, :backtrace=>["org/jruby/RubyIO.java:1297:in `syswrite'", "jar:file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/connection.rb:210:in `write'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "org/jruby/RubyArray.java:1617:in `each'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/protocol.rb:64:in `write_http_body'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/request.rb:78:in `execute'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/agent.rb:313:in `execute'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/ftw/agent.rb:205:in `post!'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:82:in `post'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:77:in `flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1332:in `each'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1489:in `loop'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn} {code} At the same time, the error in Elasticsearch log is - {code} [2013-09-05 16:11:50,860][WARN ][http.netty ] [log1] Caught exception while handling client http traffic, closing connection [id: 0xb25ee957, /192.168.1.176:57272 :> /192.168.1.176:9200] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:554) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireChannelDisconnected(Channels.java:396) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:361) at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:81) at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779) at org.elasticsearch.common.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.elasticsearch.common.netty.channel.Channels.close(Channels.java:812) at org.elasticsearch.common.netty.channel.AbstractChannel.close(AbstractChannel.java:197) at org.elasticsearch.http.netty.NettyHttpServerTransport.exceptionCaught(NettyHttpServerTransport.java:306) at org.elasticsearch.http.netty.HttpRequestHandler.exceptionCaught(HttpRequestHandler.java:49) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.exceptionCaught(SimpleChannelUpstreamHandler.java:153) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.elasticsearch.common.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:48) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.notifyHandlerException(DefaultChannelPipeline.java:658) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:566) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {code} Note that this setup works fine in Logstash 1.1.12 and I am unsure how to narrow down which config/logs are causing this from the 110 shippers I have.

    JIRA | 3 years ago | Jamie Milburn
    java.lang.NumberFormatException: For input string: ""
  3. 0

    Hi, I'm trying the elasticsearch_http output plugin, the config looks like below: {code} elasticsearch_http { host => "10.42.217.97" port => 9200 flush_size => 300 idle_flush_time => 5 } {code} After start the logstash agent, i got some error in log: {code} {:timestamp=>"2013-09-17T00:31:58.860000-0700", :message=>"Failed to flush outgoing items", :outgoing_count=>300, :exception=>#<Errno::EPIPE: Broken pipe - Broken pipe>, :backtrace=>["org/jruby/RubyIO.java:1297:in `syswrite'", "jar:file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/connection.rb:210:in `write'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "org/jruby/RubyArray.java:1617:in `each'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:64:in `write_http_body'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/request.rb:78:in `execute'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:313:in `execute'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:205:in `post!'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:82:in `post'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:77:in `flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1332:in `each'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:159:in `buffer_receive'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:59:in `receive'", "(eval):74:in `initialize'", "org/jruby/RubyProc.java:255:in `call'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:247:in `output'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:212:in `outputworker'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:140:in `start_outputs'"], :level=>:warn} {code} The error log in ElasticSearch: {code} 2013-09-17 00:31:46,042][WARN ][http.netty ] [Collector] Caught exception while handling client http traffic, closing connection [id: 0x7bcabc3d, /10.42.219.99:24448 => /10.42.217.97:9200] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {code} Any idea?

    JIRA | 3 years ago | Zz Chen
    java.lang.NumberFormatException: For input string: ""
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sending log messages as UTF-8 to ElasticSearch with norwegian (Æ Ø Å) characters causes (in elasticsearch) {noformat} [2013-09-18 15:20:30,525][WARN ][http.netty ] [Brant, Betty] Caught exception while handling client http traffic, closing connection [id: 0xa79de609, /78.91.100.201:54947 => /78.91.100.201:9200] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) {noformat} this in turn causes (in logstash) {noformat} ←[33mFailed to flush outgoing items {:outgoing_count=>83, :exception=>#<SystemCallError: Unknown error - An established connection was aborted by the software in your host machine>, :backtrace=>["org/jruby/RubyIO.java:1299:in `syswrite'", "jar:file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/connection.rb:210:in `write'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "org/jruby/RubyArray.java:1617:in `each'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:64:in `write_http_body'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/request.rb:78:in `execute'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:313:in `execute'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:205:in `post!'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:82:in `post'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:77:in `flush'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1332:in `each'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1489:in `loop'", "file:/D:/logstash/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn}←[0m {noformat} This is the logstash config used {noformat} input { file { path => "path to file" type => "a_type" codec => json { charset => "UTF-8" } } } output { elasticsearch_http { host => "fqdn" codec => json { charset => "UTF-8" } } } {noformat} The server is running Windows 2008 R2 and Java 7

    JIRA | 3 years ago | Niels Henrik Hagen
    java.lang.NumberFormatException: For input string: ""
  6. 0

    Hi, I'm trying the elasticsearch_http output plugin, the config looks like below: {code} elasticsearch_http { host => "10.42.217.97" port => 9200 flush_size => 300 idle_flush_time => 5 } {code} After start the logstash agent, i got some error in log: {code} {:timestamp=>"2013-09-17T00:31:58.860000-0700", :message=>"Failed to flush outgoing items", :outgoing_count=>300, :exception=>#<Errno::EPIPE: Broken pipe - Broken pipe>, :backtrace=>["org/jruby/RubyIO.java:1297:in `syswrite'", "jar:file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/connection.rb:210:in `write'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "org/jruby/RubyArray.java:1617:in `each'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:83:in `write_http_body_chunked'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/protocol.rb:64:in `write_http_body'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/request.rb:78:in `execute'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:313:in `execute'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:205:in `post!'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:82:in `post'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:77:in `flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1332:in `each'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/stud/buffer.rb:159:in `buffer_receive'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:59:in `receive'", "(eval):74:in `initialize'", "org/jruby/RubyProc.java:255:in `call'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:247:in `output'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:212:in `outputworker'", "file:/usr/share/logstash/indexer/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:140:in `start_outputs'"], :level=>:warn} {code} The error log in ElasticSearch: {code} 2013-09-17 00:31:46,042][WARN ][http.netty ] [Collector] Caught exception while handling client http traffic, closing connection [id: 0x7bcabc3d, /10.42.219.99:24448 => /10.42.217.97:9200] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318) at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {code} Any idea?

    JIRA | 3 years ago | Zz Chen
    java.lang.NumberFormatException: For input string: ""

  1. Handemelindo 6 times, last 4 days ago
  2. bmacedo 2 times, last 6 days ago
  3. MoYapro 1 times, last 1 week ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
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. java.lang.NumberFormatException

    For input string: ""

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Integer.parseInt(Integer.java:504)
    2 frames
  3. ElasticSearch
    DeadLockProofWorker$1.run
    1. org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.getChunkSize(HttpMessageDecoder.java:621)
    2. org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:318)
    3. org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101)
    4. org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)
    5. org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:554)
    6. org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365)
    7. org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)
    8. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    9. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    10. org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
    11. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    12. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
    13. org.elasticsearch.common.netty.channel.Channels.fireChannelDisconnected(Channels.java:396)
    14. org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:361)
    15. org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:81)
    16. org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36)
    17. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)
    18. org.elasticsearch.common.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
    19. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
    20. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
    21. org.elasticsearch.common.netty.channel.Channels.close(Channels.java:812)
    22. org.elasticsearch.common.netty.channel.AbstractChannel.close(AbstractChannel.java:197)
    23. org.elasticsearch.http.netty.NettyHttpServerTransport.exceptionCaught(NettyHttpServerTransport.java:306)
    24. org.elasticsearch.http.netty.HttpRequestHandler.exceptionCaught(HttpRequestHandler.java:49)
    25. org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
    26. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    27. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    28. org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.exceptionCaught(SimpleChannelUpstreamHandler.java:153)
    29. org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
    30. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    31. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    32. org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377)
    33. org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
    34. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    35. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    36. org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
    37. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    38. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
    39. org.elasticsearch.common.netty.channel.Channels.fireExceptionCaught(Channels.java:525)
    40. org.elasticsearch.common.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:48)
    41. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.notifyHandlerException(DefaultChannelPipeline.java:658)
    42. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:566)
    43. org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    44. org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
    45. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    46. org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
    47. org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
    48. org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
    49. org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
    50. org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
    51. org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
    52. org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
    53. org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
    54. org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
    55. org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    55 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:724)
    3 frames