Greg, can you tell me the full version info for JDK 1.5 version you are running? Also, what OS are you on?

--a.


----- Original Message ----- From: "gregh" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 08, 2006 5:54 AM
Subject: IfModifiedWeblogPageCacheFilter IllegalArgumentException



Hello,

This code:

if (updateTime != null) {
// convert date (JDK 1.5 workaround)
String date = dateFormatter.format(updateTime);
updateTime = new Date(date);
if (updateTime.compareTo(sinceDate) <= 0) {
mLogger.debug("NOT_MODIFIED " + key);
response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
return;
}
}

always throws an exception in new Date(date) and never gets to the return,
when using JDK1.5.

Not sure if the filter is doing what it is supposed to when the code is
modified ie updateTime = dateFormatter.parse(date);

Cheers greg.
--
View this message in context: http://www.nabble.com/IfModifiedWeblogPageCacheFilter-IllegalArgumentException-tf2072474s12275.html#a5705791
Sent from the Roller - Dev forum at Nabble.com.


Reply via email to