Could not get IOR from Domino Server
I’ve got a java class, and I’m trying to connect to the Domino database.
The error occurs when the following line is executed (full code at end of email):
Session session = NotesFactory.createSession("theserver", "myuser", "mypassword");
NotesException: Could not get IOR from Domino Server: Invalid IOR null
DIIOP and HTTP are enabled
Had a look at
http://www-01.ibm.com/support/docview.wss?uid=swg21163126
Tell DIIOP show config - shows
Site IOR File: /data/local/notesdata/domino/html/diiop_ior.txt
http://theserver/diiop_ior.txt DOES return the diiop_ior.txt file
the diiop_ior.txt file IS in the domino/html directory
The path specified in the server document:
(Internet Protocols | DIIOP | External HTML directory)
/data/local/notesdata/
I’m running the class from a Windows command line and the Domino database is on a linux server.
Any help (links, examples, etc) will be appreciated.
Thank you
/********************************************************
import lotus.domino.NotesFactory;
import lotus.domino.Session;
import lotus.domino.Database;
import lotus.domino.View;
import lotus.domino.ViewEntryCollection;
import lotus.domino.ViewEntry;
import lotus.domino.Document;
import java.util.*;
import java.io.*;
public class sample {
public static void main(String[] arguments)
{
try
{
Session session = NotesFactory.createSession("theserver", "myuser", "mypassword");
}
catch ( Exception e )
{
System.out.println("Error "+e.toString());
}
}
}