148 words

FileNotFoundException

#1
2017-08-29 19:43

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
sjzlondon
sjzlondon's picture
Joined on 2013-04-21
User Post #36
#2
2017-08-30 08:16

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,808
#3
2017-08-30 09:26

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.

sjzlondon
sjzlondon's picture
Joined on 2013-04-21
User Post #37
#4
2017-08-30 16:10

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,809

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel