Oliver Zeigermann <[EMAIL PROTECTED]> writes:

> 
> >>There still seem to be some bugs left, presumably mainly taken over from
> >>the reference implementation. We will do our best to further analyze and
> >>fix them.
> > FileResourceManager.saveState() fails for me sometimes,
> 
> > because it tries to create a file in a nonexisting directory.
> 
> 
> Could you give a stacktrace and/or any information under which
> circumstances this happens?

I did a simple put.
Adding a e.printStackTrace at line 1406() gives the following output.
The work directory exists, but work/Thread-13-1066205894564-11
does not exist. I checked, that the directory does not exists 
using dir.exists(). Creating this directory will cure the problem
(or at least the syntoms).
I am using Java 1.4.1 on a Suse Linux 8.2 / Intel Single CPU.
Both the work and the data directory live on the same partition,
which is mounted via NFS. 

java.io.FileNotFoundException: 
/home/holz/slidedata/data/work/Thread-13-1066205894564-11/transaction.log
 (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at 
org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionContext.saveState(FileRe
sourceManager.java:1401)
        at 
org.apache.slide.store.txfile.rm.impl.FileResourceManager.commitTransaction(FileResourceManag
er.java:561)
        at 
org.apache.slide.store.txfile.AbstractTxFileStoreService.commit(AbstractTxFileStoreService.ja
va:180)
        at 
org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:347)
        at 
org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:230)
        at 
org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:462)
        at 
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:356)
        at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:201)


Finally a HeuristicMixedException is thrown and no more operations are possible,
until I restart the webdav servlet.

A minor point, shouldn't you use
  File dir =  new File(workDir,txId)
instead of
  File dir =  new File(workDir + "/" + txId)
at line 11397 to make sure the program runs on Windows?.



--
Martin Holz     <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin     



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to