we get following exception when we execute a find() in a scenario, we can not readjust with an example.
Before the exception throws we get two outputs on std error:
pos = -8192 length = 8192
The Exception:
Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb_541100773067300498\pages11.dat' Exception in thread "Thread-359" [ObjectDB 2.6.6_08] javax.persistence.PersistenceException Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb_541100773067300498\pages11.dat' (error 117) at com.objectdb.jpa.EMImpl.find(EMImpl.java:630) at com.objectdb.jpa.EMImpl.find(EMImpl.java:545) at com.btc.ep.base.dal.internal.services.PersistenceUtilityServiceImpl.find(PersistenceUtilityServiceImpl.java:108) ... at java.lang.Thread.run(Thread.java:745) Caused by: com.objectdb.o.UserException: Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb_541100773067300498\pages11.dat' at com.objectdb.o.MSG.d(MSG.java:75) at com.objectdb.o.LFL.UA(LFL.java:1107) at com.objectdb.o.PageCacheFile.l(PageCacheFile.java:165) at com.objectdb.o.PAG.L(PAG.java:448) at com.objectdb.o.PAG.T(PAG.java:550) at com.objectdb.o.PAG.U(PAG.java:563) at com.objectdb.o.RRT.C(RRT.java:241) at com.objectdb.o.RTT.l(RTT.java:134) at com.objectdb.o.RRT.l(RRT.java:32) at com.objectdb.o.TSK.i(TSK.java:145) at com.objectdb.o.TSK.f(TSK.java:95) at com.objectdb.o.TSM.e(TSM.java:86) at com.objectdb.o.MST.a1(MST.java:707) at com.objectdb.o.MST.aY(MST.java:476) at com.objectdb.o.MST.Vl(MST.java:442) at com.objectdb.o.WRA.Vl(WRA.java:266) at com.objectdb.o.LDR.G(LDR.java:556) at com.objectdb.o.LDR.F(LDR.java:473) at com.objectdb.o.LDR.A(LDR.java:272) at com.objectdb.o.OBC.aP(OBC.java:1059) at com.objectdb.o.OBC.aN(OBC.java:977) at com.objectdb.jpa.EMImpl.find(EMImpl.java:625) ... 15 more Caused by: java.io.IOException: Negative seek offset at java.io.RandomAccessFile.seek(RandomAccessFile.java:555) at com.objectdb.o.LFL.L(LFL.java:1184) at com.objectdb.o.LFL.UA(LFL.java:1101) ... 35 more
I also add a screenshot of the temp directory. Striking is the size of page11.dat