Still trying to fins a solution to this problem.
I have a servlet that connects to Domino using the NotesFactory ogjects. Regardless of the method i use to connect DIIOP will from time to time stop responding.
Using a hard coded server IP, username and password [session = NotesFactory.createSession(“127.0.0.1:63148”, name, pass);] I just see a NULL pointer error. I then switched over to using the IOR file in the hopes that it would shed some more light on the problem.
What I’ve found is that IOR string from [String ior = NotesFactory.getIOR(“127.0.0.1”);] is NULL when this problem happens. This seems to occure during replication with another server. Could it be that the DIIOP_IOR.txt file is getting removed? In addition, the code throws a “NotesException: 4000 : Creating administration request to create mail file for %A…” which seems meaningless.
I’m about at my wits end, this has been going on for weeks now on code that I swear was working. Nothing in it is very complex and it should all just work. That this problem is intermittent means that I never know if what I’ve changed has solved anything untill it crashes again.
Code where the problem happens.
try { // NotesException 1
String ior = NotesFactory.getIOR(“127.0.0.1”);
System.out.println("testServlet : " + uName + " \ " + uPass + " : " + ior);
//Session session = NotesFactory.createSession(“127.0.0.1:63148”, uName, uPass);
Session session = NotesFactory.createSessionWithIOR(ior, uName, uPass); // Try connecting with the IOR
// Get the LTPA tokemn and build the query
lToken = session.getSessionToken();
session.recycle();
} catch (NotesException e) { // NotesException 1
System.out.println("testServlet : Error generating notesfactory session: ");
System.out.println(e.id + " | " + e.text);
e.printStackTrace();
}
Error in the Domino log.
01/22/2007 07:20:26 AM HTTP JVM: testServlet : user1 \ password : null
01/22/2007 07:20:26 AM HTTP JVM: testServlet : Error generating notesfactory session:
01/22/2007 07:20:26 AM HTTP JVM: 4000 | Notes error: Creating administration request to create mail file for %A…
01/22/2007 07:20:26 AM HTTP JVM: NotesException: Notes error: Creating administration request to create mail file for %A…
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.local.Session.NgetSessionToken(Native Method)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.local.Session.getSessionToken(Session.java:1232)
01/22/2007 07:20:26 AM HTTP JVM: at testServlet.doGet(testServlet.java:67)
01/22/2007 07:20:26 AM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
01/22/2007 07:20:26 AM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.executeServlet(DominoServletInvoker.java:283)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.service(DominoServletInvoker.java:224)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.ServletManager.service(ServletManager.java:245)
01/22/2007 07:20:26 AM HTTP JVM: java.lang.NullPointerException
01/22/2007 07:20:26 AM HTTP JVM: at testServlet.encode(testServlet.java:267)
01/22/2007 07:20:26 AM HTTP JVM: at testServlet.doGet(testServlet.java:81)
01/22/2007 07:20:26 AM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
01/22/2007 07:20:26 AM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.executeServlet(DominoServletInvoker.java:283)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.service(DominoServletInvoker.java:224)
01/22/2007 07:20:26 AM HTTP JVM: at lotus.domino.servlet.ServletManager.service(ServletManager.java:245)