History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-306
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Lars Torunski
Reporter: Michael Pih
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

Exceptions (IOExceptions) are suppressed by AbstractDiskPersistenceListener store()

Created: 31/Mar/08 12:10 PM   Updated: 31/May/08 04:01 AM
Component/s: Listeners, Base Classes, Persistence
Affects Version/s: 2.4, 2.4.1
Fix Version/s: 2.4.2

Flags: Important


 Description  « Hide
OSCache 2.4.1

com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener
line 352-366

There are a few cases here in which Exceptions are just eaten up with no logging whatsoever. An exception should be logged somewhere in these cases.

This made it very difficult to determine why some of our application objects were not being cached to disk. The root cause was a non-serializable IOException, however OSCache was suppressing the error.

To replicate:
1. Configure a disk-based cache.
2. Create a non-serializable object.
3. Try and cache the object. It doesn't ever get cached. Nothing gets written to disk except for the directories the file would be written to.


 All   Comments   Change History      Sort Order:
Lars Torunski - [31/May/08 04:01 AM ]
Two further exceptions are logged now. Futhermore the stack trace of the origin is included.