Results 1 to 2 of 2

Thread: Job is not going to failed state even when the Item Reader is throwing an exception.

  1. #1
    Join Date
    Sep 2012
    Posts
    16

    Default Job is not going to failed state even when the Item Reader is throwing an exception.

    Job is getting set as COMPLETED even when the CustomItemReader has thrown and "UnexpectedInputException" is thrown.
    Is this the expected behavior??

    I would also like to know under what conditions a job will be get set to FAILED state?

    Regards,
    Ravi Shanker

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    366

    Default

    Without seeing the code, I can't be sure. If an ItemReader throws an exception that is not retried or skipped, however, the framework should mark the step failed.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •