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