Operating System - OpenVMS
1819925 Members
3276 Online
109607 Solutions
New Discussion

Berkeley DB Java Edition

 
P R Stone_1
Advisor

Berkeley DB Java Edition

I get the following error when running the SimpleExample. It creates the db files in xxx$java:[000000.test]
00000000.JDB;1 JE.LCK;1

com.sleepycat.je.log.LogFileNotFoundException: Couldn't open file /xxx$java/te
st/00000000.jdb: /xxx$java/test/00000000.jdb (file currently locked by another
user)
at com.sleepycat.je.log.FileManager.makeFileHandle(FileManager.java)
at com.sleepycat.je.log.FileManager.truncateLog(FileManager.java)
at com.sleepycat.je.log.LastFileReader.setEndOfFile(LastFileReader.java)
at com.sleepycat.je.recovery.RecoveryManager.findEndOfLog(RecoveryManage
r.java)
at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.jav
a)
at com.sleepycat.je.dbi.EnvironmentImpl.(EnvironmentImpl.java)
at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java)
at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java)
at com.sleepycat.je.Environment.(Environment.java)
at SimpleExample.SimpleExample.run(SimpleExample.java)
at SimpleExample.SimpleExample.main(SimpleExample.java)
1 REPLY 1
P R Stone_1
Advisor

Re: Berkeley DB Java Edition

I will recreate this thread under a different header. The problem is no with BDBJE but with the OpenVMS JVM.
Using the following will solve this problem
$ define DECC$efs_case_preserve true
$ define DECC$efs_case_special true
$ define DECC$efs_charset true
$ define JAVA$FILE_OPEN_MODE 3

OR
$define DECC$FILE_SHARING ENABLED

However I get an alternate error
com.sleepycat.je.RunRecoveryException: com.sleepycat.je.DatabaseException: Could
n't open file ./00000000.jdb: com.sleepycat.je.RunRecoveryException: IOException
caught: java.io.IOException: bad file number