org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary.

Spring JIRA | Dmitry Katsubo | 5 years ago
  1. 0

    JobRestartException is being thrown in another thread - Spring Forum

    spring.io | 1 year ago
    org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary.
  2. 0

    When the job is attempted to be restarted, the following exception is raised: 2011-07-07 10:32:30,750 ERROR [org.springframework.batch.core.job.AbstractJob] Encountered fatal error executing job org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary. at org.springframework.batch.core.job.SimpleStepHandler.shouldStart(SimpleStepHandler.java:197) at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:117) at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:61) at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:135) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:281) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:120) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) This exception is not propagated to SimpleJobLauncher.run(), as this condition is checked after the job is launched in new thread. Result is: The job execution never started and it is programmatically very difficult to recover from this error. Expected: The job execution preconditions are checked before the job is launched and reported to caller of SimpleJobLauncher.run() via exception. This will allow to react on this event appropriately and recover without human intervention.

    Spring JIRA | 5 years ago | Dmitry Katsubo
    org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary.
  3. 0

    When the job is attempted to be restarted, the following exception is raised: 2011-07-07 10:32:30,750 ERROR [org.springframework.batch.core.job.AbstractJob] Encountered fatal error executing job org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary. at org.springframework.batch.core.job.SimpleStepHandler.shouldStart(SimpleStepHandler.java:197) at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:117) at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:61) at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:135) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:281) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:120) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) This exception is not propagated to SimpleJobLauncher.run(), as this condition is checked after the job is launched in new thread. Result is: The job execution never started and it is programmatically very difficult to recover from this error. Expected: The job execution preconditions are checked before the job is launched and reported to caller of SimpleJobLauncher.run() via exception. This will allow to react on this event appropriately and recover without human intervention.

    Spring JIRA | 5 years ago | Dmitry Katsubo
    org.springframework.batch.core.repository.JobRestartException: Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.batch.core.repository.JobRestartException

      Cannot restart step from UNKNOWN status. The last execution ended with a failure that could not be rolled back, so it may be dangerous to proceed. Manual intervention is probably necessary.

      at org.springframework.batch.core.job.SimpleStepHandler.shouldStart()
    2. Spring Batch Core
      SimpleJobLauncher$1.run
      1. org.springframework.batch.core.job.SimpleStepHandler.shouldStart(SimpleStepHandler.java:197)
      2. org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:117)
      3. org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:61)
      4. org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60)
      5. org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144)
      6. org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124)
      7. org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:135)
      8. org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:281)
      9. org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:120)
      9 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames