Ok - I suggest that if you want help with code that you actually SHOW US the code that you want help with.
We can't debug code that we can't see. Post the code that manifests the problem and a copy of the session showing how that code is executed.
Also post the full Java version you are using.
We have this SDF - "yyyy-MM-dd,HH:mm:ss.Sz", Which was working previously and now for some reason is giving the exception as shown above and failing to parse the date
Java version is 1.7.0_u51Java Code:
Date dt = new Date();
dt = alert.parse("yyyy-MM-dd,HH:mm:ss.Sz"); alert is a String holding the value shown in input string
} catch (ParseException e)
e.printStackTrace(); //Code ends up here and throws the error shown above in Original post
The Fix is found
In case anyone stumbles upon this.
The SDF format to be used under Java 1.7 was
SimpleDateFormat sdf =
This is a bit curious why the old format worked for so long and suddenly with a upgrade it went sideways, could be a issue or some thing not sure
leave it upto the experts.