NotesThread error

Hi,

I have problems with NotesThread and I don’t understand it.Please, help a student. That’s my code :

import lotus.domino.*;

public class toto extends AgentBase {

public static void main(String[] args) {



	

	String fn,fn2,title,title2;

	int cpt1=0;

	int cpt2=0;

	boolean trouve;

	

	try {

		

		NotesThread.sinitThread();				

Session session = NotesFactory.createSession();

	    DbDirectory dir = session.getDbDirectory(null);

	    		    System.out.println(dir.getName());

	    		

	}

		

	catch(Exception e) {

		e.printStackTrace();

	}

	 

	finally {

	 	NotesThread.stermThread();

	}

	

}

}

and the result :

java.lang.Exception: Notes initialization failure - err 421

at lotus.domino.NotesThread.NnotesInitThread(Native Method)

at lotus.domino.NotesThread.sinitThread(Unknown Source)

at toto.main(toto.java:29)

An unexpected error has been detected by HotSpot Virtual Machine:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x60001293, pid=1480, tid=2668

Java VM: Java HotSpot™ Client VM (1.5.0_02-b09 mixed mode)

Problematic frame:

C [nnotes.dll+0x1293]

An error report file with more information is saved as hs_err_pid1480.log

If you would like to submit a bug report, please visit:

Java Issue Tracker - Home

Subject: NotesThread error

Hi

I’m not quite sure what you’re doing.

The error indicates that you’re using Java 5.0.

Notes does NOT use j2SE 5.0. Did you replace the Java in the Notes Notes subdirectories with 5.0 files?

regards

Jesper Kiaer

http://www.jezzper.com

Subject: RE: NotesThread error

xcuse me I tried with many librairies.

With the JRE 1.3 :

java.lang.Exception: Notes initialization failure - err 421

at lotus.domino.NotesThread.NnotesInitThread(Native Method)



at lotus.domino.NotesThread.sinitThread(Unknown Source)

at toto.main(toto.java:29)

An unexpected exception has been detected in native code outside the VM.

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x60001293

Function name=OSLockReadSem

Library=C:\Eclipse\eclipse\workspace\Final\nnotes.dll

Current Java thread:

at lotus.domino.NotesThread.NnotesTermThread(Native Method)

at lotus.domino.NotesThread.stermThread(Unknown Source)

at toto.main(toto.java:92)

Dynamic libraries:

0x00400000 - 0x00405000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\javaw.exe

0x77F40000 - 0x77FEE000 C:\WINDOWS\System32\ntdll.dll

0x77E40000 - 0x77F36000 C:\WINDOWS\system32\kernel32.dll

0x77DA0000 - 0x77E3E000 C:\WINDOWS\system32\ADVAPI32.dll

0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll

0x77D10000 - 0x77D9D000 C:\WINDOWS\system32\USER32.dll

0x7F000000 - 0x7F041000 C:\WINDOWS\system32\GDI32.dll

0x77BE0000 - 0x77C33000 C:\WINDOWS\system32\MSVCRT.dll

0x62DC0000 - 0x62DC8000 C:\WINDOWS\System32\LPK.DLL

0x72EF0000 - 0x72F4A000 C:\WINDOWS\System32\USP10.dll

0x6D420000 - 0x6D4FB000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\hotspot\jvm.dll

0x76AE0000 - 0x76B0E000 C:\WINDOWS\System32\WINMM.dll

0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\hpi.dll

0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\verify.dll

0x6D250000 - 0x6D268000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\java.dll

0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_15\bin\zip.dll

0x62640000 - 0x627F0000 C:\Eclipse\eclipse\workspace\Final\nlsxbe.dll

0x621B0000 - 0x62306000 C:\Eclipse\eclipse\workspace\Final\nxmlpar.dll

0x62320000 - 0x62338000 C:\Eclipse\eclipse\workspace\Final\nxmlcommon.dll

0x60000000 - 0x60D13000 C:\Eclipse\eclipse\workspace\Final\nnotes.dll

0x62150000 - 0x621AD000 C:\Eclipse\eclipse\workspace\Final\js32.dll

0x62350000 - 0x62441000 C:\Eclipse\eclipse\workspace\Final\NLSCCSTR.DLL

0x76720000 - 0x76728000 C:\WINDOWS\System32\SHFOLDER.dll

0x770E0000 - 0x7716B000 C:\WINDOWS\system32\OLEAUT32.dll

0x4FEC0000 - 0x4FFF6000 C:\WINDOWS\system32\OLE32.DLL

0x76340000 - 0x76386000 C:\WINDOWS\system32\comdlg32.dll

0x70A70000 - 0x70AD6000 C:\WINDOWS\system32\SHLWAPI.dll

0x77300000 - 0x7738B000 C:\WINDOWS\system32\COMCTL32.dll

0x08DC0000 - 0x095C8000 C:\WINDOWS\system32\SHELL32.dll

0x71A10000 - 0x71A19000 C:\WINDOWS\System32\WSOCK32.dll

0x719F0000 - 0x71A05000 C:\WINDOWS\System32\WS2_32.dll

0x719E0000 - 0x719E8000 C:\WINDOWS\System32\WS2HELP.dll

0x62950000 - 0x62956000 C:\Eclipse\eclipse\workspace\Final\ndgts.dll

0x18200000 - 0x1822E000 C:\Eclipse\eclipse\workspace\Final\LTOUIN22.dll

0x78090000 - 0x78175000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1643_x-ww_7c3a9bc6\comctl32.dll

0x76C40000 - 0x76C62000 C:\WINDOWS\system32\imagehlp.dll

0x6D9E0000 - 0x6DA5D000 C:\WINDOWS\system32\DBGHELP.dll

0x77BD0000 - 0x77BD7000 C:\WINDOWS\system32\VERSION.dll

0x76BA0000 - 0x76BAB000 C:\WINDOWS\System32\PSAPI.DLL

Local Time = Wed May 18 16:31:41 2005

Elapsed Time = 3

The exception above was detected in native code outside the VM

Java VM: Java HotSpot™ Client VM (1.3.1_15-b01 mixed mode)

An error report file has been saved as hs_err_pid3172.log.

Please refer to the file for further information.

Subject: RE: NotesThread error

Hi

I think your installation is pretty f***** up.

Why is your Notes files in your Eclipse directory?

Your are not using the Java installation in your Notes directoriem, but an installation of a normal JRE 1.31 installation.

regards

Jesper Kiaer

http://www.jezzper.com

Subject: thank you very much

the problem was a conflict between NCO.jar and NCSO.jar and I have a new problem today (I posted a new topic)