java.lang.IllegalArgumentException: Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London)

JIRA | Michael Wade | 4 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

    When the following log entry is parsed (logstash 1.1.4 on windows) the exception below is thrown. *Log Entry:* {noformat} [31-Mar-2013 01:11:22 UTC] PHP Notice: XXXXXXXXXXXXXXXXXX {noformat} *Date Filter:* {noformat} date { type => "phpErrors" eventtime => "dd-MMM-yyyy HH:mm:ss" exclude_tags => ["_grokparsefailure"] } {noformat} *Exception:* {noformat} Exception in thread "filter|worker|0" java.lang.IllegalArgumentException: Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London) at org.joda.time.format.DateTimeParserBucket.computeMillis(DateTimeParse rBucket.java:390) at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatte r.java:849) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(Ja vaMethod.java:455) at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316) at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvo ker.java:61) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 168) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:19 7) at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128 ) at org.jruby.runtime.Block.call(Block.java:89) at org.jruby.RubyProc.call(RubyProc.java:261) at org.jruby.RubyProc.call19(RubyProc.java:249) at org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$c all19.gen) at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j ava:208) at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j ava:204) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 168) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyHash$13.visit(RubyHash.java:1205) at org.jruby.RubyHash.visitAll(RubyHash.java:594) at org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1156) at org.jruby.RubyHash.each_pairCommon(RubyHash.java:1201) at org.jruby.RubyHash.each19(RubyHash.java:1192) at org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$e ach19.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:204) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:200) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:336) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:179) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 183) at rubyjit.LogStash::Filters::Base$$execute_386ACCDEF607236777FD23B9AA00 0FA7B7A317C620484787.__file__(file:/C:/logstash/logstash-1.1.4-monolithic.jar!/l ogstash/filters/base.rb:88) at rubyjit.LogStash::Filters::Base$$execute_386ACCDEF607236777FD23B9AA00 0FA7B7A317C620484787.__file__(file:/C:/logstash/logstash-1.1.4-monolithic.jar!/l ogstash/filters/base.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.jav a:201) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:336) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:179) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:188) at org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java: 60) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:182) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:192) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:326) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 170) at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.WhileNode.interpret(WhileNode.java:131) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:139) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:176) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:306) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 136) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:268) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:224) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:366) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 238) at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java: 43) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:19 7) at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128 ) at org.jruby.runtime.Block.call(Block.java:89) at org.jruby.RubyProc.call(RubyProc.java:261) at org.jruby.RubyProc.call(RubyProc.java:213) at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:98) at java.lang.Thread.run(Unknown Source) {noformat} I understand that this would be expected if the timezone was BST, but I have read elsewhere that the default timezone is UTC for date filter. The server moved timezone from GMT to BST on 31.03.2013. I could of course be misunderstanding the whole time zone thing completely though :)

    JIRA | 4 years ago | Michael Wade
    java.lang.IllegalArgumentException: Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London)
  2. 0

    When the following log entry is parsed (logstash 1.1.4 on windows) the exception below is thrown. *Log Entry:* {noformat} [31-Mar-2013 01:11:22 UTC] PHP Notice: XXXXXXXXXXXXXXXXXX {noformat} *Date Filter:* {noformat} date { type => "phpErrors" eventtime => "dd-MMM-yyyy HH:mm:ss" exclude_tags => ["_grokparsefailure"] } {noformat} *Exception:* {noformat} Exception in thread "filter|worker|0" java.lang.IllegalArgumentException: Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London) at org.joda.time.format.DateTimeParserBucket.computeMillis(DateTimeParse rBucket.java:390) at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatte r.java:849) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(Ja vaMethod.java:455) at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316) at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvo ker.java:61) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 168) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:19 7) at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128 ) at org.jruby.runtime.Block.call(Block.java:89) at org.jruby.RubyProc.call(RubyProc.java:261) at org.jruby.RubyProc.call19(RubyProc.java:249) at org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$c all19.gen) at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j ava:208) at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j ava:204) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 168) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyHash$13.visit(RubyHash.java:1205) at org.jruby.RubyHash.visitAll(RubyHash.java:594) at org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1156) at org.jruby.RubyHash.each_pairCommon(RubyHash.java:1201) at org.jruby.RubyHash.each19(RubyHash.java:1192) at org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$e ach19.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:204) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:200) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:336) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:179) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 183) at rubyjit.LogStash::Filters::Base$$execute_386ACCDEF607236777FD23B9AA00 0FA7B7A317C620484787.__file__(file:/C:/logstash/logstash-1.1.4-monolithic.jar!/l ogstash/filters/base.rb:88) at rubyjit.LogStash::Filters::Base$$execute_386ACCDEF607236777FD23B9AA00 0FA7B7A317C620484787.__file__(file:/C:/logstash/logstash-1.1.4-monolithic.jar!/l ogstash/filters/base.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.jav a:201) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:336) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:179) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:188) at org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java: 60) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:228) at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 123) at org.jruby.ast.RescueNode.interpret(RescueNode.java:113) at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96) at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:16 0) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.eachCommon(RubyArray.java:1605) at org.jruby.RubyArray.each(RubyArray.java:1612) at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$e ach.gen) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite. java:143) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.j ava:154) at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64 ) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:182) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:192) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:326) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 170) at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.WhileNode.interpret(WhileNode.java:131) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:139) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:176) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:306) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 136) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.ja va:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(Interpreted Method.java:268) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j ava:224) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSi te.java:366) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 238) at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java: 43) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.jav a:112) at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block .java:209) at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:19 7) at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128 ) at org.jruby.runtime.Block.call(Block.java:89) at org.jruby.RubyProc.call(RubyProc.java:261) at org.jruby.RubyProc.call(RubyProc.java:213) at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:98) at java.lang.Thread.run(Unknown Source) {noformat} I understand that this would be expected if the timezone was BST, but I have read elsewhere that the default timezone is UTC for date filter. The server moved timezone from GMT to BST on 31.03.2013. I could of course be misunderstanding the whole time zone thing completely though :)

    JIRA | 4 years ago | Michael Wade
    java.lang.IllegalArgumentException: Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London)
  3. 0

    [LOGSTASH-737] Error on parse date timestamp in apache_log - logstash.jira.com

    jira.com | 1 year ago
    java.lang.IllegalArgumentException: Invalid format: "18/Aug/2011:06:00:14 -0700" is malformed at "Aug/2011:06:00:14 -0700"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, I started to learn to use logstash to read the article “10-minute-walkthrough” (http://logstash.net/docs/1.1.5/tutorials/10-minute-walkthrough/) On the step 5 (real world example. Let's backfill some old apache logs. First, let's use grok. ) i have a problem: Exception in thread "filter|worker|0" java.lang.IllegalArgumentException: Invalid format: "18/Aug/2011:06:00:14 -0700" is malformed at "Aug/2011:06:00:14 -0700" at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:866) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) ........ all configs and apache logs i get from manual “10-minute-walkthrough” logstash.conf input { tcp { type => "apache" port => 3333 } } filter { grok { type => "apache" pattern => "%{COMBINEDAPACHELOG}" } date { type => "apache" timestamp => "dd/MMM/yyyy:HH:mm:ss Z" } } output { stdout { debug => true } } apache_log.1 129.92.249.70 - - [18/Aug/2011:06:00:14 -0700] "GET /style2.css HTTP/1.1" 200 1820 "http://www.semicomplete.com/blog/geekery/bypassing-captive-portals.html" "Mozilla/5.0 (iPad; U; CPU OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5" ogstash version is 1.1.5 my system locale is LANG=ru_RU.UTF-8 OS - Ubuntu server 12.04 Java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1) OpenJDK Server VM (build 20.0-b12, mixed mode)

    JIRA | 4 years ago | Vadim Petrov
    java.lang.IllegalArgumentException: Invalid format: "18/Aug/2011:06:00:14 -0700" is malformed at "Aug/2011:06:00:14 -0700"
  6. 0

    Hi, I started to learn to use logstash to read the article “10-minute-walkthrough” (http://logstash.net/docs/1.1.5/tutorials/10-minute-walkthrough/) On the step 5 (real world example. Let's backfill some old apache logs. First, let's use grok. ) i have a problem: Exception in thread "filter|worker|0" java.lang.IllegalArgumentException: Invalid format: "18/Aug/2011:06:00:14 -0700" is malformed at "Aug/2011:06:00:14 -0700" at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:866) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) ........ all configs and apache logs i get from manual “10-minute-walkthrough” logstash.conf input { tcp { type => "apache" port => 3333 } } filter { grok { type => "apache" pattern => "%{COMBINEDAPACHELOG}" } date { type => "apache" timestamp => "dd/MMM/yyyy:HH:mm:ss Z" } } output { stdout { debug => true } } apache_log.1 129.92.249.70 - - [18/Aug/2011:06:00:14 -0700] "GET /style2.css HTTP/1.1" 200 1820 "http://www.semicomplete.com/blog/geekery/bypassing-captive-portals.html" "Mozilla/5.0 (iPad; U; CPU OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5" ogstash version is 1.1.5 my system locale is LANG=ru_RU.UTF-8 OS - Ubuntu server 12.04 Java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1) OpenJDK Server VM (build 20.0-b12, mixed mode)

    JIRA | 4 years ago | Vadim Petrov
    java.lang.IllegalArgumentException: Invalid format: "18/Aug/2011:06:00:14 -0700" is malformed at "Aug/2011:06:00:14 -0700"

  1. aldrinleal 6494 times, last 1 month ago
  2. Nikolay Rybak 2 times, last 5 months ago
  3. kid 10 times, last 5 months ago
  4. Handemelindo 2 times, last 6 months ago
1 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.IllegalArgumentException

    Cannot parse "31-Mar-2013 01:11:22": Illegal instant due to time zone offset transitio n (Europe/London)

    at org.joda.time.format.DateTimeParserBucket.computeMillis()
  2. Joda-Time
    DateTimeFormatter.parseDateTime
    1. org.joda.time.format.DateTimeParserBucket.computeMillis(DateTimeParserBucket.java:390)
    2. org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:849)
    2 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  4. JRuby Main Maven Artifact
    CachingCallSite.call
    1. org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:455)
    2. org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316)
    3. org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:61)
    4. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)
    5. org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    6. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    7. org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
    8. org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
    9. org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:197)
    10. org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128)
    11. org.jruby.runtime.Block.call(Block.java:89)
    12. org.jruby.RubyProc.call(RubyProc.java:261)
    13. org.jruby.RubyProc.call19(RubyProc.java:249)
    14. org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)
    15. org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
    16. org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)
    17. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)
    18. org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    19. org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110)
    20. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    21. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    22. org.jruby.ast.RescueNode.executeBody(RescueNode.java:228)
    23. org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:123)
    24. org.jruby.ast.RescueNode.interpret(RescueNode.java:113)
    25. org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    26. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    27. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    28. org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
    29. org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
    30. org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:160)
    31. org.jruby.runtime.Block.yield(Block.java:130)
    32. org.jruby.RubyArray.eachCommon(RubyArray.java:1605)
    33. org.jruby.RubyArray.each(RubyArray.java:1612)
    34. org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
    35. org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)
    36. org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
    37. org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
    38. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    39. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    40. org.jruby.ast.RescueNode.executeBody(RescueNode.java:228)
    41. org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:123)
    42. org.jruby.ast.RescueNode.interpret(RescueNode.java:113)
    43. org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    44. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    45. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    46. org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
    47. org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
    48. org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:160)
    49. org.jruby.runtime.Block.yield(Block.java:130)
    50. org.jruby.RubyArray.eachCommon(RubyArray.java:1605)
    51. org.jruby.RubyArray.each(RubyArray.java:1612)
    52. org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
    53. org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)
    54. org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
    55. org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
    56. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    57. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    58. org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
    59. org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
    60. org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:160)
    61. org.jruby.runtime.Block.yield(Block.java:130)
    62. org.jruby.RubyHash$13.visit(RubyHash.java:1205)
    63. org.jruby.RubyHash.visitAll(RubyHash.java:594)
    64. org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1156)
    65. org.jruby.RubyHash.each_pairCommon(RubyHash.java:1201)
    66. org.jruby.RubyHash.each19(RubyHash.java:1192)
    67. org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$each19.gen)
    68. org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)
    69. org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
    70. org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
    71. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    72. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    73. org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
    74. org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)
    75. org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:200)
    76. org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)
    77. org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)
    78. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:183)
    78 frames