Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
-
All
Description
A race condition is created when java.text.SimpleDateFormat is used in combination with JDBC pooling. The race causes threads to lock. As threads are locked up, the application server will run out of threads and stop responding.
To fix this issue, please use Commons Lang's FastDateFormat instead of SimpleDateFormat. To assist with this change, two new utility class has been added.
com.liferay.portal.kernel.util.FastDateFormatFactoryUtil returns a java.text.Format
com.liferay.portal.kernel.util.DateFormatFactoryUtil returns a java.text.DateFormat
(Format is faster but lacks some of the methods available in DateFormat.)
Attachments
Issue Links
- is related to
-
LPS-4948 SimpleDateFormat can lock a thread when used in combination with c3po
- Closed