Hi I have created a Java File that tries to create sessions for Users based on their user id and password. It gets the IOR and the DIIOP service is also running but on creating session it throws an exception .
The Code is as follows : -
import lotus.domino.*;
public class LDAPTestFile
{
public static void main(String[] args)
{
String username=(String)args[0];
String password=(String)args[1];
String DOMINOSERVER_DIIOP=(String)args[2];
System.out.println("Coming inside Lotus Login Check");
System.out.println("username is "+username);
System.out.println("DOMINOSERVER_DIIOP is "+DOMINOSERVER_DIIOP);
System.out.println("password is "+password);
try
{
String ior=NotesFactory.getIOR(DOMINOSERVER_DIIOP);
System.out.println("ior is "+ior);
Session s = NotesFactory.createSessionWithIOR(ior,username,password);
if(s!=null)
{
System.out.println("URL :"+s.getHttpURL());
String name = s.getUserName();
System.out.println("Domino authentication successful for login: " +name);
}
else
System.out.println("Lotus Login UnSuccessfull");
}
catch (NotesException theException)
{
System.out.println("NotesException is "+theException.id);
System.out.println("NotesException is MESSAGE "+theException.getMessage());
theException.printStackTrace();
System.out.println("Lotus Login Unsuccessfull");
}
}
}
While the ouput of the program is …
Coming inside Lotus Login Check
username is E0011
DOMINOSERVER_DIIOP is 10.1.4.106:63148
password is password
ior is IOR:0101dc002900000049444c3a6c6f7475732f646f6d696e6f2f
636f7262612f494f626a6563745365727665723a312e30000000
0001000000000000007c000000010101000a0000003132372e3
02e302e3100acf6310000000438353235363531612d656336382
d313036632d656565302d303037653264323233336235004c6f7
475734e4f490100010000000200000014000000080000000101
06000600adf601000000140000000101dc000100010500000000
0001010000000000
NotesException is 4062
Lotus Login Unsuccessfull
NotesException: Could not open Notes session: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection refused: connect Host: 127.0.0.1 Port: 63148 vmcid: 0x0 minor code: 1 completed: No
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.<init>(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at LDAPTestFile.main(LDAPTestFile.java:28)
get Message :null
The configuration of the Lotus Server is as follows : –
Lotus Server : - Windows 2000
Lotus Version : - 6.5.5
The DIIOP server task is running and we have placed NCSO.jar in JavaUserClasses variable in notes.ini
TCP IP Port is enabled and User and Password Access is also ON .
Would really appreciate if someone could help me with this problem .
Thanking in advance .