forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Cache error invalid stream header
Date Mon, 23 Mar 2009 02:30:21 GMT
Tim Williams wrote:
> David Crossley wrote:
> >
> > ? ?[ https://issues.apache.org/jira/browse/FOR-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682930#action_12682930
]
> >
> > David Crossley commented on FOR-1031:
> > -------------------------------------
> >
> > I am seeing some issues now.
> >
> > In the PDF output plugin, building its own little website.
> > (Also saw this with site-author.)
> >
> > Did 'forrest clean; forrest run' all okay.
> >
> > Then did 'forrest' to build the "site".
> > Got one error:
> > --------
> > ERROR - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource-file:///svn/asf/forrest/main/webapp/skins/pelt/images/instruction_arrow.png.
Error was invalid stream header
> > java.io.StreamCorruptedException: invalid stream header
> > ? ? ? ?at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
> > ? ? ? ?at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
> > ? ? ? ?at net.sf.ehcache.store.DiskStore$1.<init>(DiskStore.java:272)
> > ? ? ? ?at net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:267)
> 
> Hey David, I *think* this is unrelated to what I've done for a couple reasons:
> o) I'm not using a disk store.
> o) It appears to be Cocoon's cache/key that's causing the problem -
> likely been corrupted somehow.
> o) I've had no luck reproducing your errors with either site.
> 
> Ideally, 'forrest clean' would also clean up the cache so you wouldn't
> have a problem after you've run that and retried.  However,
> unfortunately, I think Cocoon cache's are stored in java.io.tmp, which
> is outside of our 'forrest clean' command's grasp so its not actually
> getting cleaned fully (ie., the cache survives 'clean' operations).
> 
> Can you try:
> cd $java.io.tmpdir
> rm cocoon-ehcache*
> 
> then, rerun the tests you did above?

Yes, done, that fixed it. Thanks.

-David

Mime
View raw message