Force Shutdown Can Corrupt Incache Disk Cache

(Doc ID 1494534.1)

Last updated on SEPTEMBER 01, 2016

Applies to:

Oracle WebCenter Sites - Version 7.5.4 and later
Information in this document applies to any platform.

Goal

A CS environment has incache enabled, and this java parameter -Dnet.sf.ehcache.enableShutdownHook=true specified in the JVM startup scripts.

However there is a practice of force shutting down the environment, and have been noticing similar error as below in the log:

net.sf.ehcache.distribution.RMISynchronousCacheReplicator replicateRemovalNotification
SEVERE: Exception on replication of removeNotification. dependencyRepositoryCache: Could not remove disk store entry for key <assettype>:1295073051332. Error was null. Continuing...
net.sf.ehcache.CacheException: dependencyRepositoryCache: Could not remove disk store entry for key <assettype>:1295073051332. Error was null
at net.sf.ehcache.store.DiskStore.remove(DiskStore.java:474)
at net.sf.ehcache.Cache.remove(Cache.java:1519)
at net.sf.ehcache.Cache.remove(Cache.java:1446)
at net.sf.ehcache.Cache.remove(Cache.java:1404)
at net.sf.ehcache.Cache.remove(Cache.java:1382)
at com.fatwire.cache.ehcache.EhCacheObjectCache$DependencyRepository.invalidate(EhCacheObjectCache.java:1096)

Could the force shutdowns cause this error?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms