java.lang.ArrayIndexOutOfBoundsException: 14
at sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:436)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2081)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1996)
at java.util.Calendar.setTimeInMillis(Calendar.java:1066)
at java.util.Calendar.setTime(Calendar.java:1032)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:785)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778)
at java.text.DateFormat.format(DateFormat.java:314)
Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.
[url]http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579[/url]
Sun refused to accept this issue as a BUG, so we have to handle the thread-safe by ourselves.
[url]http://jroller.com/dschneller/entry/calendar_dateformat_and_multi_threading[/url]