Home » Support » Issue Tracking » ObjectDB tries to create a File in a localtion without write access

ObjectDB tries to create a File in a localtion without write access

Type: BugPriority: CriticalStatus: FixedReplies: 2
#1

Hello,

if we install our Product into the windows Program Files directory which have by default no write acces for the 'normal' users.

If we now open 'older' Profiles (older Databases) we get the following exception:

Caused by: javax.persistence.PersistenceException: com.objectdb.o.UserException: Failed to create a new file 'IndexManager_12.mrg_filter'
  at com.objectdb.o._PersistenceException.b(_PersistenceException.java:47)
  at com.objectdb.o.JPE.g(JPE.java:145)
  at com.objectdb.o.JPE.g(JPE.java:78)
  ... 25 more
Caused by: com.objectdb.o.UserException: Failed to create a new file 'IndexManager_12.mrg_filter'
  at com.objectdb.o.MSG.d(MSG.java:75)
  at com.objectdb.o.LFL.D(LFL.java:868)
  at com.objectdb.o.LFL.B(LFL.java:807)
  at com.objectdb.o.LFL.B(LFL.java:776)
  at com.objectdb.o.FCL.l(FCL.java:159)
  at com.objectdb.o.IXM.A(IXM.java:256)
  at com.objectdb.o.UTT.l(UTT.java:216)
  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.Vf(MST.java:1406)
  at com.objectdb.o.WRA.Vf(WRA.java:396)
  at com.objectdb.o.WSM.Vf(WSM.java:184)
  at com.objectdb.o.OBM.bQ(OBM.java:954)
  at com.objectdb.o.OBM.bO(OBM.java:854)
  at com.objectdb.o.OBM.bM(OBM.java:754)
  at com.objectdb.jpa.EMImpl.commit(EMImpl.java:287)
  ... 22 more
Caused by: java.io.FileNotFoundException: IndexManager_12.mrg_filter (Access is denied)
  at java.io.RandomAccessFile.open0(Native Method)
  at java.io.RandomAccessFile.open(Unknown Source)
  at java.io.RandomAccessFile.<init>(Unknown Source)
  at com.objectdb.o.LFL.D(LFL.java:855)
  ... 37 more

Please provide a fix which creates the file for example in %TEMP%

#2

Please try build 2.7.0_04.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Thank you very much for the fast fix. We had directly used the new version.


Post Reply

To post a reply and/or subscribe to update notifications - please login