Lotus Notes Programming using Java

Hi all,I am working on Lotus Notes Programming using Java. I am getting an “abnormal termination” run time error while running one of my codes. Probably the error is happening at the statements

EdlDocs t = new EdlDocs(label1);

t.start();

Even debugging the VJ++ project is not taking the control to the EDLDocs class. Instead the control goes till the end of the code and then shows the error.

I have set all the CLASSPATHs correct.

Does anyone have any idea what can be the problem with my code? Pls help me soon. Its a very urgent requirement for me.

Thanks in advance,

Treck.

Subject: Lotus Notes Programming using Java

I am not sure what class EdlDocs is. I am assuming its a NotesThread Class?

One problem could be that the NoesThead needs to be initialised before use and terminated before the program ends.

See NotesThread.sinitThread is Notes Documentation.

An application or servlet that makes local calls uses the NotesThread class, which extends java.lang.Thread. You can extend NotesThread, implement the Runnable interface, or use the static NotesThread methods sinitThread() and stermThread(). If you extend NotesThread, the entry point to the functional code must be public void runNotes(). If you implement Runnable, the entry point must be public void run(). If you use the static NotesThread methods, be sure to call stermThread exactly one time for each call to sinitThread. An application that makes remote calls does not use the NotesThread class. See the examples for clarification.

Each thread of an application making local calls must initialize a NotesThread object. This includes AWT threads that access the Domino Objects. Listener threads must use the static methods because they cannot inherit from NotesThread.

Subject: RE: Lotus Notes Programming using Java

Hi Kalyan,

Sorry that I didnt mention about the EDLDocs class. Actaully this EDLDocs extends NotesThread and this class has a method runNotes() also which is to be the entry point for the code. But while debugging, the control reaches the statement t.start(); but it doesnt go to the runNotes() method in the EDLDocs class. I am not able to figure out the exact problem with the code.

Please help me.