Hi,
When working on a spring batch based application, I encountered an error related to SimpleDateFormat.
After some investigation, the cause of the error was related to the un-synchronized use of SimpleDateFormat in org.springframework.batch.item.file.transform.Defa ultFieldSet.
Possible solution: create a new instance of SimpleDateFormat in each method that reads a date field.
Example:
ThanksCode:public Date readDate(int index) { DateFormat dateFormat = new SimpleDateFormat(DEFAULT_DATE_PATTERN); return parseDate(readAndTrim(index), dateFormat); }


Reply With Quote