hi
from time to time i get exception during online backup in server/client config:
Exception in thread "Thread-0" com.objectdb.o.UserException: Failed to read from file 'D:\twozniak\Desktop\db\objectdb-2.2.8\db-files\points.odb' at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.LFL.T(LFL.java:1059) at com.objectdb.o.LFL.B(LFL.java:486) at com.objectdb.o.LFL.m(LFL.java:449) at com.objectdb.o.BAC.n(BAC.java:119) at com.objectdb.o.TOL.run(TOL.java:115) at com.objectdb.o.DTT.run(DTT.java:73) at com.objectdb.o.STD.run(STD.java:73) Caused by: java.io.IOException: The process cannot access the file because another process has locked a portion of the file at java.io.RandomAccessFile.readBytes(Native Method) at java.io.RandomAccessFile.read(RandomAccessFile.java:338) at java.io.RandomAccessFile.readFully(RandomAccessFile.java:397) at com.objectdb.o.LFL.T(LFL.java:1056) ... 6 more
code:
PersistenceManager em = pmf.getPersistenceManager(); Query backupQuery = em.newQuery("objectdb backup"); backupQuery.execute();
but this is not an urgent functionality for us
br