[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
StreamCorruptedException while using ehcache 2.5 on RHEL 4 platform  XML
Forum Index -> Ehcache
Author Message
dhrp

neo

Joined: 03/20/2012 11:54:27
Messages: 3
Offline

I am using ehcache v2.5.0.

I am running into an issue on RHEL 4 platform only, while using the disk storage. I get the following exception:

[ERROR] [03/20/2012 01:39:51 PM EDT] [-pool-1-thread-1] ScheduledTask$1 net.sf.ehcache.CacheException: java.io.StreamCorruptedException: invalid stream header
net.sf.ehcache.CacheException: java.io.StreamCorruptedException: invalid stream header
at net.sf.ehcache.store.disk.DiskStorageFactory.retrieve(DiskStorageFactory.java:964)
at net.sf.ehcache.store.disk.Segment.decodeHit(Segment.java:178)
at net.sf.ehcache.store.disk.Segment.get(Segment.java:216)
at net.sf.ehcache.store.disk.DiskStore.get(DiskStore.java:504)
at net.sf.ehcache.store.disk.DiskStore.getQuiet(DiskStore.java:511)
at net.sf.ehcache.store.FrontEndCacheTier.getQuiet(FrontEndCacheTier.java:196)
at net.sf.ehcache.Cache.searchInStoreWithoutStats(Cache.java:2101)
at net.sf.ehcache.Cache.get(Cache.java:1630)
at org.springframework.cache.ehcache.EhCacheCache.get(EhCacheCache.java:65)
...
...

Any suggestion?
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Was their a restart of some sort?

Want to post to this forum? Join the Terracotta Community
dhrp

neo

Joined: 03/20/2012 11:54:27
Messages: 3
Offline

No, there was no restart. A very first cache refresh resulted in this exception.
dhrp

neo

Joined: 03/20/2012 11:54:27
Messages: 3
Offline

Never mind, the question. It was a user error!

The disk store directory was pointing on a mounted file system and shared between multiple servers. So, the file was being trampled upon by at least 4 servers.

Thank you.
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

No worries, thanks for letting us know!

Want to post to this forum? Join the Terracotta Community
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team