Following is the code snippet which is throwing an exception:
SimpleDateformat dateFormatter = new SimpleDateFormat(\"yyyyMMddHHmm\");
Date date = dateFormatter.
You're trying to parse a date/time that didn't occur.
We now know that this was in the Sydney time zone. At 2am on October 1st 2017 in Sydney, the clocks went forward to 3am. If you were looking at a clock every minute you'd see:
So any date/time between 2am (inclusive) and 3am (exclusive) simply didn't occur in that time zone. We don't know what produced the values you're trying to parse, but:
java.time
package and parse them as LocalDateTime
values