Announcement Announcement Module
Collapse
No announcement yet.
get line number and filename in itemProcessor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • get line number and filename in itemProcessor

    Hi,

    I am new in spring batch. I am using spring batch to parse my files. I want to log to an error_log file the ValidationExceptions which can occur from ItemProcessor. My problem is that after mapping the contents of row with object I can not find any connection between the row of file and created object.
    So, I want the number of the line and the file name as the format of error_log file is:
    line: <number_of_line> filename: <The_name_of_file> row: <the_row_which_caused_the_validatiodException>

    Thank you
Working...
X