185 words

Issue #296 - ObjectDB tries to create a File in a localtion without write access

BugVersion: Priority: CriticalStatus: FixedReplies: 2
#1
2017-04-03 13:45

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%

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #186
#2
2017-04-03 15:26

Please try build 2.7.0_04.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,740
#3
2017-04-05 12:07

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

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #187

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