You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're getting a lot of errors in our logs concerning State Change.
Any ideas?
Here's an example (I've replace our job details with xxxxx).
2014-03-17 17:30:20,784 WARN [1970473475@qtp-1380290369-11557] JobInstanceSqlMapDao:307 - State change for a completed Job is not allowed. Job JobIdentifier[xxxxx] is currently State=Completed, Result=Passed
java.lang.Exception
at com.thoughtworks.cruise.server.dao.JobInstanceSqlMapDao.logIfJobIsCompleted(JobInstanceSqlMapDao.java:307)
at com.thoughtworks.cruise.server.dao.JobInstanceSqlMapDao.access$700(JobInstanceSqlMapDao.java:42)
at com.thoughtworks.cruise.server.dao.JobInstanceSqlMapDao$2.doInTransaction(JobInstanceSqlMapDao.java:281)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate$2.doInTransaction(TransactionTemplate.java:23)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate.execute(TransactionTemplate.java:19)
at com.thoughtworks.cruise.server.dao.JobInstanceSqlMapDao.updateStateAndResult(JobInstanceSqlMapDao.java:263)
at com.thoughtworks.cruise.server.dao.JobInstanceSqlMapDao.save(JobInstanceSqlMapDao.java:153)
at com.thoughtworks.cruise.server.service.JobInstanceService.save(JobInstanceService.java:247)
at com.thoughtworks.cruise.server.service.StageService.persistJobs(StageService.java:248)
at com.thoughtworks.cruise.server.service.StageService.access$400(StageService.java:65)
at com.thoughtworks.cruise.server.service.StageService$3.doInTransaction(StageService.java:210)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate$2.doInTransaction(TransactionTemplate.java:23)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate.execute(TransactionTemplate.java:19)
at com.thoughtworks.cruise.server.service.StageService.save(StageService.java:206)
at com.thoughtworks.cruise.server.service.ScheduleService$1.doInTransaction(ScheduleService.java:245)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate$2.doInTransaction(TransactionTemplate.java:23)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate.execute(TransactionTemplate.java:19)
at com.thoughtworks.cruise.server.service.ScheduleService.scheduleStage(ScheduleService.java:226)
at com.thoughtworks.cruise.server.service.ScheduleService.internalRerun(ScheduleService.java:222)
at com.thoughtworks.cruise.server.service.ScheduleService.lockAndRerunStage(ScheduleService.java:291)
at com.thoughtworks.cruise.server.service.ScheduleService.rerunJobs(ScheduleService.java:310)
at sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:550)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:395)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:79)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:226)
at ruby.jit.rerun_jobs_FEEAB9C1878C563EFD004A6DCD44889CAED1DAE4.__file__(stages_controller.rb:92)
at ruby.jit.rerun_jobs_FEEAB9C1878C563EFD004A6DCD44889CAED1DAE4.__file__(stages_controller.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:136)
at org.jruby.RubyClass.finvoke(RubyClass.java:502)
at org.jruby.RubyObject.send(RubyObject.java:1437)
at org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:266)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at ruby.jit.perform_action_11ACD7A0A0C8D148621029D92ACBAFFB47E5EE8C.__file__(base.rb:1331)
at ruby.jit.perform_action_11ACD7A0A0C8D148621029D92ACBAFFB47E5EE8C.__file__(base.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:159)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:289)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:108)
at ruby.jit.call_filters_11D5AD4F3804478625CCADB377B1AFDEEE89CAD3.__file__(filters.rb:617)
at ruby.jit.call_filters_11D5AD4F3804478625CCADB377B1AFDEEE89CAD3.__file__(filters.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:221)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:349)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:228)
at ruby.jit.perform_action_with_filters_31B597A463890CF32711DA62EA84725B6C86BE2A.__file__(filters.rb:610)
at ruby.jit.perform_action_with_filters_31B597A463890CF32711DA62EA84725B6C86BE2A.__file__(filters.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:159)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:289)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:108)
at ruby.jit.perform_action_with_benchmark_C8D5EAFDDF81ADD094CA0959F04EA70EF0BD3D95.block_0$RUBY$__block__(benchmarking.rb:68)
at ruby.jit.perform_action_with_benchmark_C8D5EAFDDF81ADD094CA0959F04EA70EF0BD3D95BlockCallback$block_0$RUBY$__block__xx1.call(Unknown Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:115)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:98)
at org.jruby.runtime.CompiledBlock.yieldSpecific(CompiledBlock.java:78)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at ruby.jit.ms_270EFA214D3CAE17976B05C52A5D6137FD992C2E.block_0$RUBY$__block__(benchmark.rb:17)
at ruby.jit.ms_270EFA214D3CAE17976B05C52A5D6137FD992C2EBlockCallback$block_0$RUBY$__block__xx1.call(Unknown Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:115)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:98)
at org.jruby.runtime.CompiledBlock.yieldSpecific(CompiledBlock.java:78)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at ruby.jit.realtime_D2996A15F4198E93817822837CF100C2D43D881C.__file__(benchmark.rb:308)
at ruby.jit.realtime_D2996A15F4198E93817822837CF100C2D43D881C.__file__(benchmark.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:136)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:167)
at org.jruby.internal.runtime.methods.WrapperMethod.call(WrapperMethod.java:74)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:115)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:132)
at ruby.jit.ms_270EFA214D3CAE17976B05C52A5D6137FD992C2E.__file__(benchmark.rb:17)
at ruby.jit.ms_270EFA214D3CAE17976B05C52A5D6137FD992C2E.__file__(benchmark.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:136)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:115)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:132)
at ruby.jit.perform_action_with_benchmark_C8D5EAFDDF81ADD094CA0959F04EA70EF0BD3D95.__file__(benchmarking.rb:68)
at ruby.jit.perform_action_with_benchmark_C8D5EAFDDF81ADD094CA0959F04EA70EF0BD3D95.__file__(benchmarking.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:159)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:289)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:108)
at ruby.jit.perform_action_with_rescue_EB38528743C8C0E3065E0595F563C1B6BE032AC9.rescue_1$RUBY$__rescue___0(rescue.rb:160)
at ruby.jit.perform_action_with_rescue_EB38528743C8C0E3065E0595F563C1B6BE032AC9.__file__(rescue.rb)
at ruby.jit.perform_action_with_rescue_EB38528743C8C0E3065E0595F563C1B6BE032AC9.__file__(rescue.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:159)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:289)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:108)
at ruby.jit.perform_action_with_flash_8F4920C7402D7F0B1FD6C0B8E220EF5878BBFC17.__file__(flash.rb:146)
at ruby.jit.perform_action_with_flash_8F4920C7402D7F0B1FD6C0B8E220EF5878BBFC17.__file__(flash.rb)
at ruby.jit.perform_action_with_flash_8F4920C7402D7F0B1FD6C0B8E220EF5878BBFC17.__file__(flash.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:85)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:141)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:101)
at org.jruby.RubyClass.finvoke(RubyClass.java:523)
at org.jruby.RubyObject.send(RubyObject.java:1464)
at org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:160)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:279)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:68)
at ruby.jit.process_9D04F496199EEF5E943447FBF76BCF144C1F2948.ensure_1$RUBY$__ensure___0(base.rb:532)
at ruby.jit.process_9D04F496199EEF5E943447FBF76BCF144C1F2948.__file__(base.rb)
at ruby.jit.process_9D04F496199EEF5E943447FBF76BCF144C1F2948.__file__(base.rb)
The text was updated successfully, but these errors were encountered:
The error basically means what it says "State change for a completed Job is not allowed". A completed job is something that has gone through the build cycle, and has completed(passed/failed/cancelled). The stack trace originates at the point wherein a stage is being scheduled for rerun. Since the job is already completed and passed, I believe you wouldn't have seen any error on the dashboard.
Can you provide some more details about when the error happens, or what user actions lead to this exception.
Hey,
We're getting a lot of errors in our logs concerning State Change.
Any ideas?
Here's an example (I've replace our job details with xxxxx).
The text was updated successfully, but these errors were encountered: