session.getDatabase() -> Database has not been opened yet

Hi,

when i try to open a database over iiop, i get the following error :

session.getDatabase(null, “db/test/mydb.nsf”)

NotesException: id=4063 text=Database db/test/mydb.nsf has not been opened yet

What the hell does it mean ? I have to manually open the database with a notes client before it’s useable with java/iiop.

this applications is critical and i can’t be watching every day that this error does not occur, can you please give me a reliable way to access a database over diiop with java?

Subject: session.getDatabase() → Database has not been opened yet

found the problem… on unix the files are case sensitive. so if the database has not been opened manually for sometime, the call to getDatabase will fails. it’s dumb it should fail all the time or never !!

using DbDirectory gives a better error :

File does not exist