Announcement Announcement Module
No announcement yet.
Rollback error while reader encounters an error Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rollback error while reader encounters an error

    I am getting an error while the reader encounters an error while reading and the writer could not roll-back, as it does not have the marker:

    org.springframework.batch.core.step.AbstractStep$F atalException: Failed while processing rollback
    at org.springframework.batch.core.step.item.ItemOrien tedStep.processRollback(
    at org.springframework.batch.core.step.item.ItemOrien tedStep.access$800(
    at org.springframework.batch.core.step.item.ItemOrien tedStep$1.doInIteration(
    at plate.getNextResult(
    at plate.executeInternal(
    at plate.iterate(
    at org.springframework.batch.core.step.item.ItemOrien tedStep.doExecute(
    at org.springframework.batch.core.step.AbstractStep.e xecute(
    at org.springframework.batch.core.job.SimpleJob.execu te(
    at leJobLauncher$
    at org.springframework.core.task.SyncTaskExecutor.exe cute(
    at com.****.AbstractBatchLauncherTests.testLaunchJob(
    at com.****.AbstractValidatingBatchLauncherTests.test LaunchJob(AbstractValidatingBatchLauncherTests.jav a:7)
    at com.**.FunctionalTests.testLaunchJob(FunctionalTes
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest( )
    at junit.framework.TestCase.runBare( )
    at org.springframework.test.ConditionalTestCase.runBa re(
    at junit.framework.TestResult$1.protect(TestResult.ja va:106)
    at junit.framework.TestResult.runProtected(TestResult .java:124)
    at )
    at junit.framework.TestSuite.runTest( 08)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit
    at org.eclipse.jdt.internal.junit.runner.TestExecutio
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(
    Caused by: org.springframework.batch.item.ResetFailedExceptio n: Could not reset reader
    at org.springframework.batch.item.file.separator.Reso urceLineReader$State.reset( :310)
    at org.springframework.batch.item.file.separator.Reso urceLineReader.reset(
    at org.springframework.batch.item.file.FlatFileItemRe ader.reset(
    at temReader.reset(
    at org.springframework.batch.core.step.item.SimpleIte mHandler.reset(
    at org.springframework.batch.core.step.item.ItemOrien tedStep.processRollback(
    ... 33 more
    Caused by: Mark invalid
    at Source)
    at org.springframework.batch.item.file.separator.Reso urceLineReader$State.reset( :307)
    ... 38 more

    **** is the package name.

    It also as a result does not update the database record with the job status, so when I try to rerun it, it says the job is already running.

    I am using 1.0.1 version

  • #2
    This is a known issue:

    Although, it should still store the meta-data.

    The fix is to either buffer items so that reset won't be called on the LineReader, or to clean the data so that you're not skipping so much in between commits. (The fix I'll probably put in will be to buffer the items)


    • #3
      Thanks Lucas! will the fix available in 1.1.0? Do we have any estimate on when it will be released(just curious)? (Jira page says 30th May).

      thanks guys!
      Last edited by hailspring; Jun 4th, 2008, 04:00 PM.


      • #4
        Technically it hasn't been addressed yet, but we should be tackling it before 1.1 goes out.