183 words

Issue #216 - Deleting archive log folder causes exception

BugVersion: 2.5.1Priority: NormalStatus: FixedReplies: 1
2014-01-08 16:24


we have observed strange behaviour when we delete odb archive log directory.

We are running long term tests and during it we are deleting all logs that are not needed keeping the system running.

When the "archive/" folder, where odb logs are archived, is deleted, the exceptions occur:

[2014-01-08 18:53:55 #34601 *]
com.objectdb.o.UserException: Failed to create a new file 'C:\SafeQORS\libs\._1.\logs\archive'
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.LFL.L(LFL.java:842)
at com.objectdb.o.LFL.I(LFL.java:782)
at com.objectdb.o.LFL.I(LFL.java:751)
at com.objectdb.o.LFL.C(LFL.java:492)
at com.objectdb.o.LFL.m(LFL.java:464)
at com.objectdb.o.LFL.n(LFL.java:613)
at com.objectdb.o.LGM.o(LGM.java:302)
at com.objectdb.o.LGR.n(LGR.java:407)
at com.objectdb.o.LGR.n(LGR.java:396)
at com.objectdb.o.QPN.f(QPN.java:150)
at com.objectdb.o.QPN.d(QPN.java:89)
at com.objectdb.o.QRC.w(QRC.java:208)
at com.objectdb.o.QRM.U6(QRM.java:252)
at com.objectdb.o.MST.U6(MST.java:933)
at com.objectdb.o.WRA.U6(WRA.java:293)
at com.objectdb.o.WSM.U6(WSM.java:113)
at com.objectdb.o.QRR.g(QRR.java:244)
at com.objectdb.o.QRR.f(QRR.java:153)
at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686)
at com.ysoft.cache.objectdb.ObjectCacheDB.search(ObjectCacheDB.java:522)
at com.ysoft.cache.objectdb.ObjectCacheDB.search(ObjectCacheDB.java:496)
at ysoft.sqpro.queue.CacheNamedQueueManager.getQueueByName(CacheNamedQueueManager.java:76)
at ysoft.sqpro.queue.CacheNamedQueueManager.getValidQueueByName(CacheNamedQueueManager.java:89)
at com.ysoft.safeq.terminal.SafeQConnector.validateTerminal(SafeQConnector.java:130)
at com.ysoft.safeq.terminal.operation.TerminalValidationInputCommand.execute(TerminalValidationInputCommand.java:19)
at com.ysoft.safeq.terminal.TerminalListener.run(TerminalListener.java:95)
Caused by: java.io.FileNotFoundException: C:\SafeQORS\libs\._1.\logs\archive (The system cannot find the path specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at com.objectdb.o.LFL.L(LFL.java:829)
... 25 more

We have not change any configuration. There is some file named archive created instead(?) of the original directory. The only way to get system working is to delete the archive file.

Can you provide us some hint, how to solve this problem?




Maruta's picture
Joined on 2013-03-20
User Post #27
2014-01-13 12:37

Please try build 2.5.4_01 that should be able to handle also deletion of the archive directory when the database is open.

Alternatively, use the old version but delete only the files in the archive directory but not the directory itself.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #1,752

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.
Maximum file size: 32 MB