In spring batch I'm loading csv file where I'm also parsing dates. Everything seems to be working fine except for one single row where I get exception
Unparseable date: "2014-03-09 02:07:07", format: [yyyy-MM-dd HH:mm:ss]
I've double checked my input file and there are no special/invisible characters in this failed row.
Caused by: java.lang.IllegalArgumentException: Unparseable date: "2014-03-09 02:07:07", format: [yyyy-MM-dd HH:mm:ss]
at org.springframework.batch.item.file.transform.DefaultFieldSet.parseDate(DefaultFieldSet.java:778)
at org.springframework.batch.item.file.transform.DefaultFieldSet.readDate(DefaultFieldSet.java:595)
Thanks for help!
EDIT
When I change hour in date from 02 to something else (e.g. '2014-03-09 03:07:07'), it works. When I then change it manually back to 02 it fails again. How can this be possible? Changing other elements of date does not help. Only changing hour.
I only experience this on our unix server with America/New_York timezone. From my local machine everything is working. JDK version on both are identical.