Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Sample code

Hey Erik,

Here's some sample code of what I'm trying to do:

// TODO figure out what the lsxbe error is all about
NotesClientHandler npr = new NotesClientHandler();

// Make use of Notes API to read some Lotus Notes properties.
try
{
npr.start();
npr.join();
}
catch (Exception e)
{
log.writeToLog(new Date(), this.getClass(), e.toString());
try
{
throw new Exception(e);
}
catch (Exception e1)
{
log.writeToLog(new Date(), this.getClass(), e1.toString());
e1.printStackTrace();
}
}


NotesClientHandler extends NotesThread and here's how the runNotes method looks like:

public void runNotes() {
mailLocations = new ArrayList(2);
try {

Session s = NotesFactory.createSession();
if (password != null && password.length() != 0) {
s = NotesFactory.createSessionWithFullAccess(password);
}
String userName = s.getUserName();
Name nameObj = s.getUserNameObject();
userName = nameObj.getCanonical();
}

catch (NotesException e) {
e.printStackTrace();
}
}

Stepping through the code, the exception is generated at npr.join().


Feedback response number WEBB7P8R7E created by ~Denise Destumichekakoi on 02/13/2009

no lsxbe in java.library.path; nlsx... (~Denise Destumi... 13.Feb.09)
. . What exactly is your Java program t... (~Lorraine Minab... 13.Feb.09)
. . . . Sample code (~Denise Destumi... 13.Feb.09)
. . . . . . So where does this code appear? (~Lorraine Minab... 13.Feb.09)
. . . . . . . . context: standalone (~Denise Destumi... 14.Feb.09)
. . . . . . . . problem solved (~Denise Destumi... 20.Feb.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS