cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Jan Taramina" <andr...@chaeron.com>
Subject Persistent store throwing exception on shutdown?
Date Sun, 21 Mar 2004 14:54:08 GMT
Hi all:

I've noticed a strange problem with Cocoon 2.1.4.  When I shut down Tomcat, 
it throws the following exception:

ERROR   (2004-03-21) 09:50.29:718   [core.store.persistent] (Unknown-URI) 
Unknown-thread/AbstractJispFilesystemStore: store(..): Exception
java.io.IOException: Cannot create a file when that file already exists
	at java.io.RandomAccessFile.length(Native Method)
	at 
com.coyotegulch.jisp.ObjectDatabaseFile.writeObject(ObjectDatabaseFile.java:22
7)
	at 
com.coyotegulch.jisp.IndexedObjectDatabase.write(IndexedObjectDatabase.java:19
9)
	at 
org.apache.excalibur.store.impl.AbstractJispFilesystemStore.doStore(AbstractJi
spFilesystemStore.java:183)
	at 
org.apache.excalibur.store.impl.AbstractReadWriteStore.store(AbstractReadWrite
Store.java:143)
	at 
org.apache.excalibur.store.impl.MRUMemoryStore.dispose(MRUMemoryStore.java:199
)

My cocoon.xconf entries for the store look like this:

<store logger="core.store">
	<parameter name="maxobjects" value="8000"/>	
</store>
	
<persistent-store logger="core.store.persistent">
	<parameter name="use-cache-directory" value="true"/>
	<parameter name="order" value="2701"/>
</persistent-store>

I've managed to resolve the problem by adding:

	<parameter name="use-persistent-cache" value="false"/>

To the <store> configuration, but would like to figure out what is causing 
this problem?

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


Mime
View raw message