title: Database does not open (Java program via DIIOP)
body: <p>I try to open a database on a Domino server via a java program. 
  Got a session to the Domino server. I use the following code to get/open the database.</p>
  
  <pre><code>session = NotesFactory.createSession(DOMINO_SERVER, DOMINO_USER, DOMINO_PW);
  if ( session == null ) {
  //do something
  }
  db = session.getDatabase(DOMINO_SERVER, DOMINO_DATABASE);
  view = db.getView("someView");
  </code></pre>
  
  <p>The following error message occurs:</p>
  
  <p>NotesException: Database xyz has not been opened yet</p>
  
  <p>If I use the "open" - method</p>
  
  <pre><code>db.open();
  </code></pre>
  
  <p>the error </p>
  
  <p>NotesException: Database open() failed</p>
  
  <p>occurs.
  User has access to database. Maximum Internet name and password: READER.</p>
  
  <p>Are there any configurations on the domino server I can check?
  Seems to be an security problem, but I don't see the cause.
  Any suggestions/hints? </p>
  
  <p><strong>[Update]</strong>
  Complete stack trace ...</p>
  
  <pre><code>NotesException: Database XYZ has not been opened yet
  at lotus.domino.NotesExceptionHelper.read(Unknown Source)
  at lotus.domino.NotesExceptionHolder._read(Unknown Source)
  at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
  at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
  at lotus.domino.corba._IDatabaseStub.getSize(Unknown Source)
  at lotus.domino.cso.Database.getSize(Unknown Source)
  </code></pre>
  
  <p>For testing I try to get the size of the database with the "getSize()" method.</p>
  
  <p>Complete stack trace from other error message:</p>
  
  <pre><code>NotesException: Database open failed ()
  at lotus.domino.NotesExceptionHelper.read(Unknown Source)
  at lotus.domino.NotesExceptionHolder._read(Unknown Source)
  at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
  at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
  at lotus.domino.corba._IDatabaseStub.open(Unknown Source)
  at lotus.domino.cso.Database.open(Unknown Source)
  </code></pre>
  
  <p><strong>[Update 2]:</strong>
  Screenshot from server console:</p>
  
  <p><img src="https://i.stack.imgur.com/gNSbh.jpg" alt="Screenshot from server console"></p>