FileNotFoundException

#1

I'm sometimes getting this exception.  Is there a simple answer to why it's occurring?  (It could take some time to produce code that results in this exception reliably).

 
Caused by: java.io.FileNotFoundException: /tmp/objectdb/tmp/objectdb_1252962966569709153/lock.lck (No such file or directory)
        at java.io.RandomAccessFile.open0(Native Method)
        at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
        at com.objectdb.o.LFL.E(LFL.java:856)
        at com.objectdb.o.LFL.C(LFL.java:809)
        at com.objectdb.o.TFM.<init>(TFM.java:103)
        at com.objectdb.o.CFG.aG(CFG.java:1108)
        at com.objectdb.o.VLV.o(VLV.java:224)
        at com.objectdb.o.VLV.m(VLV.java:167)
        at com.objectdb.o.VLV.n(VLV.java:194)
        at com.objectdb.o.EVC.l(EVC.java:113)
        at com.objectdb.o.STA.T(STA.java:518)
        at com.objectdb.o.STM.E(STM.java:426)
        at com.objectdb.o.OBM.bQ(OBM.java:934)
        at com.objectdb.jdo.PMImpl.bQ(PMImpl.java:2284)
        at com.objectdb.o.OBM.bP(OBM.java:845)
        at com.objectdb.o.OBM.bN(OBM.java:754)
        at com.objectdb.jpa.EMImpl.commit(EMImpl.java:287)
        ... 6 more
#2

The stack trace indicates a problem in preparing a directory for ObjectDB temporary files.

Please verify that the ObjectDB process has permissions to create directories and files at that path.

ObjectDB Support
#3

I was using two objectdb servers with the same (default) temp directory.  Changing the temp directory for one of the servers fixed the problem.  Thanks for your help.

#4

Thank you for this update.

Build 2.7.1_06 includes an attempt to handle multiple servers with a shared temp directory better.

ObjectDB Support

Reply