I have a simple
Java program in a web application as follows. When the code runs, the line that prints 'Point A' executes, but the line that prints 'Point B' does not. Otherwise, there are no error messages. Apparently the class 'XfoObj' is not being found, but I find that when the line that references this class executes, it causes the web page to hang and I then need to reboot the server. Is there a means of preventing the program from hanging if a class is not found? Thanks.
import lotus.domino.*;
import java.io.*;
import java.util.*;
import jp.co.antenna.XfoJavaCtl.*;
class ErrDump implements MessageListener {
public void onMessage(int errLevel, int errCode,
String errMessage) {
System.out.println("ErrorLevel = " + errLevel + "\nErrorCode = " +
errCode + "\n" + errMessage);
}
}
public class JavaAgent extends AgentBase {
public void NotesMain() {
XfoObj axfo = null;
try {
System.out.println("Point A");
axfo = new XfoObj();
System.out.println("Point B");
} catch(Exception e) {
} finally {}
}
}