[Geoserver-devel] [jira] (GEOS-5774) Time parsing is not thread safe

Sampo Savolainen created BugGEOS-5774
Time parsing is not thread safe

Issue Type:

BugBug

Affects Versions:

2.3.0

Assignee:

Andrea Aime

Components:

WMS

Created:

16/Apr/13 7:49 AM

Description:

Concurrent requests to layers with a time dimension cause the following Exceptions:

java.lang.ArrayIndexOutOfBoundsException: -1
at java.text.DigitList.fitsIntoLong(DigitList.java:212)
at java.text.DecimalFormat.parse(DecimalFormat.java:1295)
at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1934)
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1311)
at org.geoserver.ows.kvp.TimeKvpParser.getFuzzyDate(TimeKvpParser.java:293)
at org.geoserver.ows.kvp.TimeKvpParser.parse(TimeKvpParser.java:172)
at org.geoserver.ows.util.KvpUtils.parse(KvpUtils.java:420)

This is due the fact that SimpleDateFormat is not thread safe.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Sampo Savolainen

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)