JRE Access Exception Crash Caused by JNA - java

I am attempting to get the Version info for a .exe using the Version.dll and JNA.
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.win32.W32APIOptions;
/**
*
* #author geverding
*/
public interface Version extends Library {
Version INSTANCE = (Version) Native.loadLibrary("Version", Version.class, W32APIOptions.UNICODE_OPTIONS);
public int GetFileVersionInfoSizeW(String lptstrFilename);
public int GetFileVersionInfo(String lptstrFilename, int dwHandle, int dwLen, PointerByReference lpData);
public int VerQueryValue(PointerByReference pBlock, String lpSubBlock, PointerByReference lplpBuffer, IntByReference puLen);
}
...in the Main method
int dwlen = Version.INSTANCE.GetFileVersionInfoSizeW("C:\\Test\\VNCSetup.EXE");
At this point the JRE throws a exception
#
A fatal error has been detected by the Java Runtime Environment:
#
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefc6e14ff,
pid=3884, tid=2248
#
JRE version: 6.0_26-b03
Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode
windows-amd64 compressed oops)
Problematic frame:
C [Version.dll+0x14ff]
#
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x000000000054c000): JavaThread "main"
[_thread_in_native, id=2248,
stack(0x00000000024e0000,0x00000000025e0000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x00000001800161ca
Registers: RAX=0x00000000025df4d8, RBX=0x000000009c2e9678,
RCX=0x0000000000000001, RDX=0x000000000774fda0 RSP=0x00000000025df330,
RBP=0x00000000025df3b0, RSI=0x000000009c0a4258, RDI=0x0000000000000001
R8 =0x00000001800161ca, R9 =0x000000006da78189,
R10=0x00000000025f79b2, R11=0x00000000025df380 R12=0x000000000774fda0,
R13=0x000000009c2e9678, R14=0x00000000025df758, R15=0x000000000054c000
RIP=0x000007fefc6e14ff, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x00000000025df330) 0x00000000025df330:
00000000025df388 00000000025df4d8 0x00000000025df340:
0000000000000008 cccccccccccccccc 0x00000000025df350:
00000000025df478 00000001800161e1 0x00000000025df360:
0000000000000000 00000000025df478 0x00000000025df370:
000000009c0a4258 0000000180016213 0x00000000025df380:
000000009c2e9678 00000001800161ca 0x00000000025df390:
0000000000540000 000000006da78189 0x00000000025df3a0:
00000000025f2cd6 000000000000000a 0x00000000025df3b0:
00000000025df380 000000006da7c399 0x00000000025df3c0:
00000000025df400 000000018000ec6a 0x00000000025df3d0:
000000018000e580 00000000025df408 0x00000000025df3e0:
0000000000000028 000000000000000a 0x00000000025df3f0:
00000000025df680 000007fefc6e15fc 0x00000000025df400:
cccccccccccccccc 00000000025df510 0x00000000025df410:
00000000025df680 00000000025df4c0 0x00000000025df420:
cccccccccccccccc cccccccccccccccc
Instructions: (pc=0x000007fefc6e14ff) 0x000007fefc6e14df: c3 90 90
90 90 90 90 90 90 48 89 5c 24 08 56 57 0x000007fefc6e14ef: 41 54 48
83 ec 30 4c 8b e2 8b f9 4d 85 c0 74 04 0x000007fefc6e14ff: 41 83 20
00 b9 01 00 00 00 ff 15 c2 4b 00 00 8b 0x000007fefc6e150f: d8 89 44
24 60 33 d2 44 8d 42 22 49 8b cc ff 15
Register to memory mapping:
RAX=0x00000000025df4d8 is pointing into the stack for thread:
0x000000000054c000 RBX=0x000000009c2e9678 is an oop {method}
- klass: {other class} RCX=0x0000000000000001 is an unknown value
RDX=0x000000000774fda0 is an unknown value RSP=0x00000000025df330 is
pointing into the stack for thread: 0x000000000054c000
RBP=0x00000000025df3b0 is pointing into the stack for thread:
0x000000000054c000 RSI=0x000000009c0a4258 is an oop {instance class}
- klass: {other class} RDI=0x0000000000000001 is an unknown value R8
=0x00000001800161ca is an unknown value R9 =0x000000006da78189 is an
unknown value R10=0x00000000025f79b2 is an Interpreter codelet method
entry point (kind = native) [0x00000000025f74c0, 0x00000000025f8380]
3776 bytes R11=0x00000000025df380 is pointing into the stack for
thread: 0x000000000054c000 R12=0x000000000774fda0 is an unknown value
R13=0x000000009c2e9678 is an oop {method}
- klass: {other class} R14=0x00000000025df758 is pointing into the
stack for thread: 0x000000000054c000 R15=0x000000000054c000 is a
thread
Stack: [0x00000000024e0000,0x00000000025e0000],
sp=0x00000000025df330, free space=1020k Native frames: (J=compiled
Java code, j=interpreted, Vv=VM code, C=native code) C
[Version.dll+0x14ff] GetFileVersionInfoSizeExW+0x17
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j
com.sun.jna.Native.invokeInt(JI[Ljava/lang/Object;)I+0 j
com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+333
j
com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
j
com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
j $Proxy0.GetFileVersionInfoSize(Ljava/lang/String;)I+16 j
windowsversion.WindowsVersion.main([Ljava/lang/String;)V+26 v
~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread ) 0x0000000006463800 JavaThread
"Low Memory Detector" daemon [_thread_blocked, id=2284,
stack(0x0000000006d00000,0x0000000006e00000)] 0x000000000645f800
JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3808,
stack(0x0000000006c00000,0x0000000006d00000)] 0x000000000645e000
JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3780,
stack(0x0000000006b00000,0x0000000006c00000)] 0x000000000644d000
JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=2944,
stack(0x0000000006a00000,0x0000000006b00000)] 0x0000000006449800
JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=744,
stack(0x0000000006900000,0x0000000006a00000)] 0x0000000006443800
JavaThread "JDWP Transport Listener: dt_shmem" daemon
[_thread_blocked, id=3336,
stack(0x0000000006800000,0x0000000006900000)] 0x0000000000525000
JavaThread "Attach Listener" daemon [_thread_blocked, id=3244,
stack(0x0000000006700000,0x0000000006800000)] 0x0000000000524800
JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1784,
stack(0x0000000006600000,0x0000000006700000)] 0x000000000050c000
JavaThread "Finalizer" daemon [_thread_blocked, id=3652,
stack(0x0000000006300000,0x0000000006400000)] 0x0000000000508800
JavaThread "Reference Handler" daemon [_thread_blocked, id=2216,
stack(0x0000000006200000,0x0000000006300000)]
=>0x000000000054c000 JavaThread "main" [_thread_in_native, id=2248,
stack(0x00000000024e0000,0x00000000025e0000)]
Other Threads: 0x0000000000502000 VMThread [stack:
0x0000000006100000,0x0000000006200000] [id=3596] 0x0000000006480000
WatcherThread [stack: 0x0000000006e00000,0x0000000006f00000] [id=3156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap PSYoungGen total 28352K, used 2499K [0x00000000e0600000,
0x00000000e25a0000, 0x0000000100000000) eden space 24320K, 10% used
[0x00000000e0600000,0x00000000e0870f18,0x00000000e1dc0000) from
space 4032K, 0% used
[0x00000000e21b0000,0x00000000e21b0000,0x00000000e25a0000) to
space 4032K, 0% used
[0x00000000e1dc0000,0x00000000e1dc0000,0x00000000e21b0000) PSOldGen
total 64768K, used 0K [0x00000000a1200000, 0x00000000a5140000,
0x00000000e0600000) object space 64768K, 0% used
[0x00000000a1200000,0x00000000a1200000,0x00000000a5140000) PSPermGen
total 21248K, used 4506K [0x000000009c000000, 0x000000009d4c0000,
0x00000000a1200000) object space 21248K, 21% used
[0x000000009c000000,0x000000009c466a90,0x000000009d4c0000)
Code Cache [0x00000000025e0000, 0x0000000002850000,
0x00000000055e0000) total_blobs=191 nmethods=7 adapters=146
free_code_cache=49918592 largest_free_block=8704
Dynamic libraries: 0x0000000000400000 - 0x000000000042e000 C:\Program
Files\Java\jdk1.6.0_26\bin\java.exe 0x0000000077620000 -
0x00000000777cc000 C:\Windows\SYSTEM32\ntdll.dll 0x0000000077500000 -
0x000000007761f000 C:\Windows\system32\kernel32.dll
0x000007fefd840000 - 0x000007fefd8ab000
C:\Windows\system32\KERNELBASE.dll 0x000007fefdb70000 -
0x000007fefdc4b000 C:\Windows\system32\ADVAPI32.dll
0x000007feff5c0000 - 0x000007feff65f000
C:\Windows\system32\msvcrt.dll 0x000007feff5a0000 -
0x000007feff5bf000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefda40000
- 0x000007fefdb6e000 C:\Windows\system32\RPCRT4.dll
0x000000006d890000 - 0x000000006e048000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll 0x0000000077400000 -
0x00000000774fa000 C:\Windows\system32\USER32.dll 0x000007feff8c0000
- 0x000007feff927000 C:\Windows\system32\GDI32.dll 0x000007feff3b0000
- 0x000007feff3be000 C:\Windows\system32\LPK.dll 0x000007fefd970000 -
0x000007fefda3a000 C:\Windows\system32\USP10.dll 0x000007fefb090000 -
0x000007fefb0cb000 C:\Windows\system32\WINMM.dll 0x000007feff7e0000 -
0x000007feff80e000 C:\Windows\system32\IMM32.DLL 0x000007feff2a0000 -
0x000007feff3a9000 C:\Windows\system32\MSCTF.dll 0x000000006d800000 -
0x000000006d80e000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\verify.dll 0x000000006d450000 -
0x000000006d477000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.dll
0x00000000777f0000 - 0x00000000777f7000 C:\Windows\system32\PSAPI.DLL
0x000000006d4c0000 - 0x000000006d4f4000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\jdwp.dll 0x000000006d6d0000 -
0x000000006d6d8000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\npt.dll
0x000000006d850000 - 0x000000006d862000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\zip.dll 0x000000006d300000 -
0x000000006d30a000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\dt_shmem.dll 0x000007fefce50000 -
0x000007fefce67000 C:\Windows\system32\CRYPTSP.dll 0x000007fefcb50000
- 0x000007fefcb97000 C:\Windows\system32\rsaenh.dll
0x000007fefc8b0000 - 0x000007fefc8ce000
C:\Windows\system32\USERENV.dll 0x000007fefd580000 -
0x000007fefd58f000 C:\Windows\system32\profapi.dll 0x000007fefd4b0000
- 0x000007fefd4bf000 C:\Windows\system32\CRYPTBASE.dll
0x000000006d6a0000 - 0x000000006d6b7000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\net.dll 0x000007fefec90000 -
0x000007fefecdd000 C:\Windows\system32\WS2_32.dll 0x000007feff810000
- 0x000007feff818000 C:\Windows\system32\NSI.dll 0x000007fefcdf0000 -
0x000007fefce44000 C:\Windows\system32\mswsock.dll 0x000007fefcde0000
- 0x000007fefcde7000 C:\Windows\System32\wship6.dll
0x000007fefae10000 - 0x000007fefae25000
C:\Windows\system32\NLAapi.dll 0x000007fefcc70000 -
0x000007fefcccb000 C:\Windows\system32\DNSAPI.dll 0x000007fef4a70000
- 0x000007fef4a7b000 C:\Windows\System32\winrnr.dll
0x000007fef4a50000 - 0x000007fef4a65000
C:\Windows\system32\napinsp.dll 0x000007fef4a30000 -
0x000007fef4a49000 C:\Windows\system32\pnrpnsp.dll 0x000007fefc7b0000
- 0x000007fefc7b7000 C:\Windows\System32\wshtcpip.dll
0x000007fefb470000 - 0x000007fefb497000
C:\Windows\system32\IPHLPAPI.DLL 0x000007fefb450000 -
0x000007fefb45b000 C:\Windows\system32\WINNSI.DLL 0x000007fef4b50000
- 0x000007fef4b58000 C:\Windows\system32\rasadhlp.dll
0x000007fefb2e0000 - 0x000007fefb333000
C:\Windows\System32\fwpuclnt.dll 0x0000000180000000 -
0x0000000180037000
C:\Users\geverding\AppData\Local\Temp\jna7891581094505694184.dll
0x000007fefc6e0000 - 0x000007fefc6ec000
C:\Windows\system32\Version.dll
VM Arguments: jvm_args: -Xdebug
-Xrunjdwp:transport=dt_shmem,address=javadebug -Dfile.encoding=UTF-8
java_command: windowsversion.WindowsVersion Launcher Type:
SUN_STANDARD
Environment Variables:
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Program
Files\SlikSvn\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Program Files (x86)\CVSNT;C:\Program
Files\WinRar;C:\Program Files\WinRar;C:\ProgramFiles\SlikSvn\bin
USERNAME=geverding OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6
Model 15 Stepping 6, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7600
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15
stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 6216888k(3835956k free), swap
12431876k(9888884k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.1-b02) for
windows-amd64 JRE (1.6.0_26-b03), built on May 4 2011 07:15:24 by
"java_re" with MS VC++ 8.0 (VS2005)
time: Wed Aug 03 11:33:47 2011 elapsed time: 8 seconds
Anybody have any ideas why this is happening?

If this is a MS library, you need to derive from StdCallLibrary, or add an OPTION_CALLING_CONVENTION=>STDCALL_CONVENTION to the options passed to your library load.
If you call with the wrong calling convention, you will likely crash the VM.

Related

Exception Access Violation

I followed the tutorial located here.
https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html
(The 2.1 step) I used Cygwin with GCC v4 btw.
After having completed the tutorial, I received an error.
I already tried reinstalling Java. I lowered the level in UAC.
Any thoughts?
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000001801238e7, pid=2232, tid=5880
JRE version: 6.0_45-b06
Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [cygwin1.dll+0xe38e7]
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x00000000008db800): JavaThread "main" [_thread_in_native, id=5880, stack(0x00000000024b0000,0x00000000025b0000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000000
Registers:
RAX=0x0000000000000000, RBX=0x000000077fc77920, RCX=0x0000000491123030, RDX=0x00000000025afa28
RSP=0x00000000025af960, RBP=0x00000000025af990, RSI=0x000000077fc77628, RDI=0x0000000020000021
R8 =0x0000000000000001, R9 =0x0000000000000002, R10=0x00000000025b0000, R11=0x00000004911210ac
R12=0x0000000000000000, R13=0x000000077fc77920, R14=0x00000000025afa28, R15=0x00000000008db800
RIP=0x00000001801238e7, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x00000000025af960)
0x00000000025af960: 000000018018e680 00000001801238fb
0x00000000025af970: 000000077fc77920 00000000025afa08
0x00000000025af980: 000000077fc77628 0000000020000021
0x00000000025af990: 00000000025afa08 00000000029c1386
0x00000000025af9a0: 00000000008db9d0 00000000025afa28
0x00000000025af9b0: 00000000025af900 00000000008db800
0x00000000025af9c0: 00000000029b5b22 00000000025af9c8
0x00000000025af9d0: 000000077fc77920 00000000025afa28
0x00000000025af9e0: 000000077fc77e40 0000000000000000
0x00000000025af9f0: 000000077fc77920 0000000000000000
0x00000000025afa00: 00000000025afa28 00000000025afa70
0x00000000025afa10: 00000000029b5b22 0000000000000000
0x00000000025afa20: 00000000029be358 00000007d6ee2228
0x00000000025afa30: 00000000025afa30 000000077fc77a07
0x00000000025afa40: 00000000025afa80 000000077fc77e40
0x00000000025afa50: 0000000000000000 000000077fc77a10
Instructions: (pc=0x00000001801238e7)
0x00000001801238c7: 04 f3 90 eb e3 48 c7 c0 08 00 00 00 49 0f c1 82
0x00000001801238d7: f0 e3 ff ff 4c 8d 1d 19 00 00 00 4c 87 5c 24 08
0x00000001801238e7: 4c 89 18 41 ff 82 e4 e3 ff ff 41 ff 8a ec e3 ff
0x00000001801238f7: ff 58 ff e0 65 4c 8b 14 25 08 00 00 00 41 bb 01
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x000000077fc77920 is an oop
{method}
- klass: {other class}
RCX=0x0000000491123030 is an unknown value
RDX=0x00000000025afa28 is pointing into the stack for thread: 0x00000000008db800
RSP=0x00000000025af960 is pointing into the stack for thread: 0x00000000008db800
RBP=0x00000000025af990 is pointing into the stack for thread: 0x00000000008db800
RSI=0x000000077fc77628 is an oop
{constant pool}
- klass: {other class}
- cache: 0x000000077fc77e40
- 1 : : klass_index=7 name_and_type_index=18
- 2 : : 'HelloJNI' {0x7fc77b78}
- 3 : : klass_index=2 name_and_type_index=18
- 4 : : klass_index=2 name_and_type_index=20
- 5 : : "hello" {0x7fc77ee8}
- 6 : : klass_index=22 name_and_type_index=23
- 7 : : 'java/lang/Object' {0x7fa08e58}
- 8 : : '<init>'
- 9 : : '()V'
- 10 : : 'Code'
- 11 : : 'LineNumberTable'
- 12 : : 'sayHello'
- 13 : : 'main'
- 14 : : '([Ljava/lang/String;)V'
- 15 : : '<clinit>'
- 16 : : 'SourceFile'
- 17 : : 'HelloJNI.java'
- 18 : : name_index=8 signature_index=9
- 19 : : 'HelloJNI'
- 20 : : name_index=12 signature_index=9
- 21 : : 'hello'
- 22 : : 'java/lang/System' {0x7fa2fac8}
- 23 : : name_index=26 signature_index=27
- 24 : : 'java/lang/Object'
- 25 : : 'java/lang/System'
- 26 : : 'loadLibrary'
- 27 : : '(Ljava/lang/String;)V'
RDI=0x0000000020000021 is an unknown value
R8 =0x0000000000000001 is an unknown value
R9 =0x0000000000000002 is an unknown value
R10=0x00000000025b0000 is pointing into the stack for thread: 0x00000000008db800
R11=0x00000004911210ac is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000077fc77920 is an oop
{method}
- klass: {other class}
R14=0x00000000025afa28 is pointing into the stack for thread: 0x00000000008db800
R15=0x00000000008db800 is a thread
Stack: [0x00000000024b0000,0x00000000025b0000], sp=0x00000000025af960, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [cygwin1.dll+0xe38e7] issetugid+0xff47
j HelloJNI.sayHello()V+0
j HelloJNI.main([Ljava/lang/String;)V+7
v ~StubRoutines::call_stub
V [jvm.dll+0x1eac57]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j HelloJNI.sayHello()V+0
j HelloJNI.main([Ljava/lang/String;)V+7
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000006d1f000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7104, stack(0x00000000072b0000,0x00000000073b0000)]
0x0000000006d1c800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7144, stack(0x00000000071b0000,0x00000000072b0000)]
0x0000000006d0a000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=7116, stack(0x00000000070b0000,0x00000000071b0000)]
0x0000000006d07000 JavaThread "Attach Listener" daemon [_thread_blocked, id=4148, stack(0x0000000006fb0000,0x00000000070b0000)]
0x0000000006cb1000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6576, stack(0x0000000006eb0000,0x0000000006fb0000)]
0x00000000007dc000 JavaThread "Finalizer" daemon [_thread_blocked, id=7088, stack(0x0000000006bb0000,0x0000000006cb0000)]
0x00000000007d4000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5632, stack(0x0000000006ab0000,0x0000000006bb0000)]
=>0x00000000008db800 JavaThread "main" [_thread_in_native, id=5880, stack(0x00000000024b0000,0x00000000025b0000)]
Other Threads:
0x00000000007cc000 VMThread [stack: 0x00000000069b0000,0x0000000006ab0000] [id=6764]
0x0000000006d31000 WatcherThread [stack: 0x00000000073b0000,0x00000000074b0000] [id=2844]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 36800K, used 631K [0x00000007d6eb0000, 0x00000007d97c0000, 0x0000000800000000)
eden space 31552K, 2% used [0x00000007d6eb0000,0x00000007d6f4dc38,0x00000007d8d80000)
from space 5248K, 0% used [0x00000007d92a0000,0x00000007d92a0000,0x00000007d97c0000)
to space 5248K, 0% used [0x00000007d8d80000,0x00000007d8d80000,0x00000007d92a0000)
PSOldGen total 84160K, used 0K [0x0000000784c00000, 0x0000000789e30000, 0x00000007d6eb0000)
object space 84160K, 0% used [0x0000000784c00000,0x0000000784c00000,0x0000000789e30000)
PSPermGen total 21248K, used 2527K [0x000000077fa00000, 0x0000000780ec0000, 0x0000000784c00000)
object space 21248K, 11% used [0x000000077fa00000,0x000000077fc77f60,0x0000000780ec0000)
Code Cache [0x00000000029b0000, 0x0000000002c20000, 0x00000000059b0000)
total_blobs=153 nmethods=0 adapters=120 free_code_cache=49951360 largest_free_block=0
Dynamic libraries:
0x0000000000400000 - 0x000000000042f000 C:\windows\system32\java.exe
0x0000000077920000 - 0x0000000077ac9000 C:\windows\SYSTEM32\ntdll.dll
0x0000000077800000 - 0x000000007791f000 C:\windows\system32\kernel32.dll
0x000007fefd800000 - 0x000007fefd86c000 C:\windows\system32\KERNELBASE.dll
0x0000000075480000 - 0x0000000075507000 C:\windows\System32\SYSFER.DLL
0x000007fefe380000 - 0x000007fefe45b000 C:\windows\system32\ADVAPI32.dll
0x000007fefe4f0000 - 0x000007fefe58f000 C:\windows\system32\msvcrt.dll
0x000007fefdb20000 - 0x000007fefdb3f000 C:\windows\SYSTEM32\sechost.dll
0x000007feff6a0000 - 0x000007feff7cd000 C:\windows\system32\RPCRT4.dll
0x000000006d830000 - 0x000000006dfec000 C:\Program Files\Java\jre6\bin\server\jvm.dll
0x0000000077700000 - 0x00000000777fa000 C:\windows\system32\USER32.dll
0x000007feff320000 - 0x000007feff387000 C:\windows\system32\GDI32.dll
0x000007feff820000 - 0x000007feff82e000 C:\windows\system32\LPK.dll
0x000007fefdc20000 - 0x000007fefdce9000 C:\windows\system32\USP10.dll
0x000007fefb2a0000 - 0x000007fefb2db000 C:\windows\system32\WINMM.dll
0x000007feff670000 - 0x000007feff69e000 C:\windows\system32\IMM32.DLL
0x000007fefdfe0000 - 0x000007fefe0e9000 C:\windows\system32\MSCTF.dll
0x000000006d7a0000 - 0x000000006d7ae000 C:\Program Files\Java\jre6\bin\verify.dll
0x000000006d3c0000 - 0x000000006d3e7000 C:\Program Files\Java\jre6\bin\java.dll
0x000000006d7f0000 - 0x000000006d802000 C:\Program Files\Java\jre6\bin\zip.dll
0x0000000491120000 - 0x0000000491138000 C:\MHBK\JNI3\hello.dll
0x0000000180040000 - 0x0000000180610000 C:\cygwin64\bin\cygwin1.dll
0x0000000077af0000 - 0x0000000077af7000 C:\windows\system32\PSAPI.DLL
VM Arguments:
java_command: HelloJNI
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45\bin
JRE_HOME=C:\Program Files\Java\jre6
PATH=C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\windows\system32 C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\IBM\Infoprint Select;C:\Program Files\ThinkPad\Bluetooth Software;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Lenovo\Access Connections;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6.0_45\bin;C:\cygwin64\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\Java\jre6\bin
USERNAME= *________*
SHELL=/bin/bash
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 8077104k(5526276k free), swap 16152344k(13452236k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.45-b01) for windows-amd64 JRE (1.6.0_45-b06), built on Apr 1 2013 12:31:37 by "java_re" with MS VC++ 8.0 (VS2005)
time: Wed Jun 10 03:25:35 2015
elapsed time: 0 seconds
It appears to be a bug in Java
This issue could be seen due to User Account Control (UAC) feature enabled on Windows Vista or Windows 7 operating system.
UAC is enabled by default in Windows Vista and Windows 7, as a result, you might encounter some compatibility problems with different applications that have not yet been updated for the Windows UAC component
Temporarily disabling UAC may resolve the exception access issue, however, >turning off UAC reduces the security of your system. We do not recommend leaving UAC disabled.

EXCEPTION_ACCESS_VIOLATION at printing ticket

Im having this hs_err_pid when I try to print a ticket from Openbravo POS:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77036018, pid=3436, tid=1096
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [ntdll.dll+0x56018]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x04a13c00): JavaThread "pool-1-thread-1" [_thread_in_native, id=1096, stack(0x04470000,0x044c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000004
Registers:
EAX=0x002f1488, EBX=0x002c8200, ECX=0x00000000, EDX=0x0000a202
ESP=0x044bf874, EBP=0x044bf89c, ESI=0x002f1480, EDI=0x00270000
EIP=0x77036018, EFLAGS=0x00010246
Top of Stack: (sp=0x044bf874)
0x044bf874: 00270000 002c8200 00000000 53944b40
0x044bf884: 0000000a 044bf868 00000000 044bf984
0x044bf894: 76ffe115 00149a2e 044bf994 77036287
0x044bf8a4: 00270000 002f1480 044bf964 00000000
0x044bf8b4: 735c7ef2 00000000 00270000 002c8208
0x044bf8c4: 77032fe7 735c7e2a 00000008 00270194
0x044bf8d4: 00270000 00360024 00000050 fffffffe
0x044bf8e4: 77032fe7 00270000 00275908 00340025
Instructions: (pc=0x77036018)
0x77036008: 85 56 3b 03 00 8b 56 0c 8d 46 08 8b 08 89 4d f0
0x77036018: 8b 49 04 89 55 f4 8b 12 3b d1 0f 85 b7 55 fd ff
Stack: [0x04470000,0x044c0000], sp=0x044bf874, free space=13e044bf390k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x56018]
C [ntdll.dll+0x56287]
C [ntdll.dll+0x565a6]
C [kernel32.dll+0x4c484]
C [crtdll.dll+0xc4d7]
j gnu.io.LPRPort.writeArray([BII)V+0
j gnu.io.LPRPort$ParallelOutputStream.write([B)V+26
j com.openbravo.pos.printer.escpos.PrinterWritterRXTX.internalWrite([B)V+78
j com.openbravo.pos.printer.escpos.PrinterWritter$1.run()V+8
j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf0667]
V [jvm.dll+0xf06dd]
V [jvm.dll+0x11a2a0]
V [jvm.dll+0x1ddb14]
V [jvm.dll+0x17f96c]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0x4ee1c]
C [ntdll.dll+0x637eb]
C [ntdll.dll+0x637be]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gnu.io.LPRPort.writeArray([BII)V+0
j gnu.io.LPRPort$ParallelOutputStream.write([B)V+26
j com.openbravo.pos.printer.escpos.PrinterWritterRXTX.internalWrite([B)V+78
j com.openbravo.pos.printer.escpos.PrinterWritter$1.run()V+8
j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x04acb000 JavaThread "Trident pulse source thread" daemon [_thread_blocked, id=3124, stack(0x04620000,0x04670000)]
0x04aca800 JavaThread "Trident callback thread" daemon [_thread_blocked, id=3412, stack(0x045d0000,0x04620000)]
0x04a16000 JavaThread "TimerQueue" daemon [_thread_blocked, id=2432, stack(0x044c0000,0x04510000)]
=>0x04a13c00 JavaThread "pool-1-thread-1" [_thread_in_native, id=1096, stack(0x04470000,0x044c0000)]
0x0129b000 JavaThread "DestroyJavaVM" [_thread_blocked, id=4004, stack(0x00370000,0x003c0000)]
0x01b8a000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2116, stack(0x04140000,0x04190000)]
0x01b89400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2840, stack(0x040f0000,0x04140000)]
0x01b88c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=3044, stack(0x040a0000,0x040f0000)]
0x01b86800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3160, stack(0x04050000,0x040a0000)]
0x01ae7800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2608, stack(0x03de0000,0x03e30000)]
0x01ae2800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2476, stack(0x03d90000,0x03de0000)]
0x01ae1800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2468, stack(0x03d40000,0x03d90000)]
0x01ade800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2204, stack(0x03cf0000,0x03d40000)]
0x01ad6800 JavaThread "Finalizer" daemon [_thread_blocked, id=4008, stack(0x03ca0000,0x03cf0000)]
0x01ad2000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2976, stack(0x03c50000,0x03ca0000)]
Other Threads:
0x01ad0c00 VMThread [stack: 0x01240000,0x01290000] [id=2728]
0x01af1c00 WatcherThread [stack: 0x03e30000,0x03e80000] [id=3768]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 8320K, used 1394K [0x23ac0000, 0x243c0000, 0x29010000)
eden space 7424K, 10% used [0x23ac0000, 0x23b8ac98, 0x24200000)
from space 896K, 65% used [0x24200000, 0x24291f48, 0x242e0000)
to space 896K, 0% used [0x242e0000, 0x242e0000, 0x243c0000)
tenured generation total 18344K, used 16823K [0x29010000, 0x2a1fa000, 0x33ac0000)
the space 18344K, 91% used [0x29010000, 0x2a07dc38, 0x2a07de00, 0x2a1fa000)
compacting perm gen total 12288K, used 10625K [0x33ac0000, 0x346c0000, 0x37ac0000)
the space 12288K, 86% used [0x33ac0000, 0x345207e8, 0x34520800, 0x346c0000)
ro space 10240K, 51% used [0x37ac0000, 0x37feae00, 0x37feae00, 0x384c0000)
rw space 12288K, 54% used [0x384c0000, 0x38b572d8, 0x38b57400, 0x390c0000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Windows\system32\javaw.exe
0x76fe0000 - 0x7711c000 C:\Windows\SYSTEM32\ntdll.dll
0x75810000 - 0x758e4000 C:\Windows\system32\kernel32.dll
0x75140000 - 0x7518b000 C:\Windows\system32\KERNELBASE.dll
0x77130000 - 0x771d0000 C:\Windows\system32\ADVAPI32.dll
0x76b00000 - 0x76bac000 C:\Windows\system32\msvcrt.dll
0x767c0000 - 0x767d9000 C:\Windows\SYSTEM32\sechost.dll
0x769f0000 - 0x76a92000 C:\Windows\system32\RPCRT4.dll
0x75710000 - 0x757d9000 C:\Windows\system32\USER32.dll
0x767e0000 - 0x7682e000 C:\Windows\system32\GDI32.dll
0x75410000 - 0x7541a000 C:\Windows\system32\LPK.dll
0x76880000 - 0x7691d000 C:\Windows\system32\USP10.dll
0x756f0000 - 0x7570f000 C:\Windows\system32\IMM32.DLL
0x76920000 - 0x769ec000 C:\Windows\system32\MSCTF.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x72780000 - 0x727b2000 C:\Windows\system32\WINMM.dll
0x74f30000 - 0x74f7c000 C:\Windows\system32\apphelp.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x75360000 - 0x75365000 C:\Windows\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x6d000000 - 0x6d14a000 C:\Program Files\Java\jre6\bin\awt.dll
0x70320000 - 0x70371000 C:\Windows\system32\WINSPOOL.DRV
0x76e80000 - 0x76fdc000 C:\Windows\system32\ole32.dll
0x73e60000 - 0x73ffe000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x76aa0000 - 0x76af7000 C:\Windows\system32\SHLWAPI.dll
0x739b0000 - 0x739c3000 C:\Windows\system32\DWMAPI.DLL
0x73ce0000 - 0x73d20000 C:\Windows\system32\uxtheme.dll
0x74f80000 - 0x74f8c000 C:\Windows\system32\CRYPTBASE.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x771d0000 - 0x77205000 C:\Windows\system32\WS2_32.dll
0x75370000 - 0x75376000 C:\Windows\system32\NSI.dll
0x74a30000 - 0x74a6c000 C:\Windows\system32\mswsock.dll
0x74a20000 - 0x74a26000 C:\Windows\System32\wship6.dll
0x72520000 - 0x72530000 C:\Windows\system32\NLAapi.dll
0x6f420000 - 0x6f430000 C:\Windows\system32\napinsp.dll
0x6f400000 - 0x6f412000 C:\Windows\system32\pnrpnsp.dll
0x748f0000 - 0x74934000 C:\Windows\system32\DNSAPI.dll
0x6f3f0000 - 0x6f3f8000 C:\Windows\System32\winrnr.dll
0x74580000 - 0x74585000 C:\Windows\System32\wshtcpip.dll
0x72320000 - 0x7233c000 C:\Windows\system32\IPHLPAPI.DLL
0x72310000 - 0x72317000 C:\Windows\system32\WINNSI.DLL
0x6fbb0000 - 0x6fbb6000 C:\Windows\system32\rasadhlp.dll
0x72230000 - 0x72268000 C:\Windows\System32\fwpuclnt.dll
0x74a70000 - 0x74a86000 C:\Windows\system32\CRYPTSP.dll
0x74810000 - 0x7484b000 C:\Windows\system32\rsaenh.dll
0x74650000 - 0x74667000 C:\Windows\system32\USERENV.dll
0x75000000 - 0x7500b000 C:\Windows\system32\profapi.dll
0x75b70000 - 0x767ba000 C:\Windows\system32\shell32.dll
0x6d230000 - 0x6d284000 C:\Program Files\Java\jre6\bin\fontmanager.dll
0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll
0x6d1a0000 - 0x6d1c3000 C:\Program Files\Java\jre6\bin\dcpr.dll
0x10000000 - 0x10012000 C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib\Windows\i368-mingw32\rxtxSerial.dll
0x6c240000 - 0x6c267000 C:\Windows\system32\crtdll.dll
0x75380000 - 0x7540f000 C:\Windows\system32\OLEAUT32.DLL
0x012c0000 - 0x012cd000 C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib\Windows\i368-mingw32\rxtxParallel.dll
VM Arguments:
jvm_args: -Djava.library.path=C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib/Windows/i368-mingw32;C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib/Windows/jacob -Ddirname.path=C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\./
java_command: com.openbravo.pos.forms.StartPOS C:\Sistematpv\app\OpenbravoPOS\openbravopos.properties
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_33
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files\Java\jre6\bin
USERNAME=Utilisateur
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7601 Service Pack 1
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 2027120k(1262220k free), swap 4054240k(3091592k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed Apr 23 12:41:52 2014
elapsed time: 16 seconds
I tried a all I know and all I searched.
Changing the ntdll.dll , kerne32.dll and ctrdll.dll from mine (Cause this problem is only running in a PC that's not mine, and the proyect is running well in others 86 pc's)
I updated java, and followed all this points to help:
http://pcsupport.about.com/od/fixtheproblem/a/ntdlldll.htm
For more information:
Windows 7 32 bits
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
and the printer is an EPSON TM88T IV using LPT port.
It's a virtual port that epson creates itself
This is a problem than jvm send when executes any functionality of the native code.
Maybe your problem comes caused by the use of the rxtx libraries, so i reccomend you to change the 'serial' into 'file' of the printer mode.

Java crash with play framework

I'm using Play Framework for a projet and as soon as I run the website Java Crashes.
I tried to solve the issue and figured out that when I got rid of some CRUD classes the application was working, but when these CRUD classes are in the project, the application crashes.
I looked in the log file and saw that the PSPermGen was used at 99% . So I added these options to the command line:
-XX:MaxPermSize=512M -XX:PermSize=256M -Xms1024M -Xmx4096M
Then I saw that the PSYoungGen from was used at 99% . So I increased the heap size.
Now the application is still crashing but I can't figure out why.
Can you help me identify the issue ?
Here is the crash log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006af328cf, pid=2440, tid=1796
#
# JRE version: 7.0_02-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x3e28cf]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x000000000748c000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1796, stack(0x0000000008a70000,0x0000000008b70000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008
Registers:
RAX=0x0000000000000000, RBX=0x0000000008b6ce60, RCX=0x000000000b1a4720, RDX=0x0000000000000000
RSP=0x0000000008b6c010, RBP=0x0000000008b6c1c0, RSI=0x000000000c9e64f8, RDI=0x0000000000000000
R8 =0x000000000bf83bf0, R9 =0x0000000000002000, R10=0x0000000009b260d0, R11=0x0000000000000000
R12=0x000000000ac66560, R13=0x000000000a2f1c28, R14=0x0000000008b6c0e0, R15=0x0000000008b6c100
RIP=0x000000006af328cf, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x0000000008b6c010)
0x0000000008b6c010: 0000000008b6ce60 000000000ac66560
0x0000000008b6c020: 000000000b4711b0 0000000000000000
0x0000000008b6c030: 000000000ac66560 0000000000000002
0x0000000008b6c040: 000000000a2f8b88 000000006af33389
0x0000000008b6c050: 0000000008b6c1c0 00000000000001a0
0x0000000008b6c060: 0000000008b6c148 0000000008b6c1c0
0x0000000008b6c070: 0000000000000020 000000000a261450
0x0000000008b6c080: 0000000000000000 000000000000c020
0x0000000008b6c090: 00000000091008b0 0000000008b6c1c0
0x0000000008b6c0a0: 0000000007477a10 0000000000000002
0x0000000008b6c0b0: 0000000008b6ce60 000000006af354f7
0x0000000008b6c0c0: 0000000008b6ce60 0000000000000001
0x0000000008b6c0d0: 0000000000000002 0000000008b6c148
0x0000000008b6c0e0: 0000000007477a10 0000000000000200
0x0000000008b6c0f0: 0000000009aebc10 00000000000001a1
0x0000000008b6c100: 000000006b0944f8 0000000007477a10
Instructions: (pc=0x000000006af328cf)
0x000000006af328af: 48 3b f0 0f 84 87 01 00 00 44 8b 4b 28 0f 1f 40
0x000000006af328bf: 00 41 8b 53 28 4c 8b 83 e0 09 00 00 4d 8b 1c d0
0x000000006af328cf: 49 8b 43 08 48 39 38 75 2d 0f 1f 84 00 00 00 00
0x000000006af328df: 00 41 8b 43 28 41 3b c1 73 0c 8b c8 48 8b 43 30
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000008b6ce60 is pointing into the stack for thread: 0x000000000748c000
RCX=0x000000000b1a4720 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x0000000008b6c010 is pointing into the stack for thread: 0x000000000748c000
RBP=0x0000000008b6c1c0 is pointing into the stack for thread: 0x000000000748c000
RSI=0x000000000c9e64f8 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x000000000bf83bf0 is an unknown value
R9 =0x0000000000002000 is an unknown value
R10=0x0000000009b260d0 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x000000000ac66560 is an unknown value
R13=0x000000000a2f1c28 is an unknown value
R14=0x0000000008b6c0e0 is pointing into the stack for thread: 0x000000000748c000
R15=0x0000000008b6c100 is pointing into the stack for thread: 0x000000000748c000
Stack: [0x0000000008a70000,0x0000000008b70000], sp=0x0000000008b6c010, free space=1008k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x3e28cf]
Current CompileTask:
C2: 8440 433 jregex.Pretokenizer::next (1064 bytes)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000009196000 JavaThread "play-thread-1" [_thread_in_vm, id=4736, stack(0x000000000b020000,0x000000000b120000)]
0x0000000009195800 JavaThread "New I/O worker #1" [_thread_in_native, id=8988, stack(0x000000000ad20000,0x000000000ae20000)]
0x0000000009195000 JavaThread "DestroyJavaVM" [_thread_blocked, id=7500, stack(0x0000000002690000,0x0000000002790000)]
0x0000000009194000 JavaThread "New I/O server boss #1 ([id: 0x09981537, /0:0:0:0:0:0:0:0:9000])" [_thread_in_native, id=10084, stack(0x000000000ae60000,0x000000000af60000)]
0x000000000749c800 JavaThread "Service Thread" daemon [_thread_blocked, id=10052, stack(0x0000000008de0000,0x0000000008ee0000)]
0x0000000007491000 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=5876, stack(0x0000000008c60000,0x0000000008d60000)]
=>0x000000000748c000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1796, stack(0x0000000008a70000,0x0000000008b70000)]
0x0000000007481800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=8056, stack(0x0000000007de0000,0x0000000007ee0000)]
0x0000000007461800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_native, id=10236, stack(0x00000000088b0000,0x00000000089b0000)]
0x000000000744a800 JavaThread "Attach Listener" daemon [_thread_blocked, id=7488, stack(0x0000000008430000,0x0000000008530000)]
0x0000000007449800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9784, stack(0x0000000008280000,0x0000000008380000)]
0x00000000073c7000 JavaThread "Finalizer" daemon [_thread_blocked, id=9732, stack(0x0000000008110000,0x0000000008210000)]
0x00000000073be800 JavaThread "Reference Handler" daemon [_thread_blocked, id=10176, stack(0x0000000008010000,0x0000000008110000)]
Other Threads:
0x00000000073b3000 VMThread [stack: 0x0000000007f00000,0x0000000008000000] [id=5040]
0x00000000074e1000 WatcherThread [stack: 0x0000000008ff0000,0x00000000090f0000] [id=9196]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 305856K, used 243524K [0x00000007aaab0000, 0x00000007c0000000, 0x0000000800000000)
eden space 262208K, 92% used [0x00000007aaab0000,0x00000007b9881190,0x00000007baac0000)
from space 43648K, 0% used [0x00000007bd560000,0x00000007bd560000,0x00000007c0000000)
to space 43648K, 0% used [0x00000007baac0000,0x00000007baac0000,0x00000007bd560000)
PSOldGen total 699072K, used 0K [0x0000000700000000, 0x000000072aab0000, 0x00000007aaab0000)
object space 699072K, 0% used [0x0000000700000000,0x0000000700000000,0x000000072aab0000)
PSPermGen total 262144K, used 23512K [0x00000006e0000000, 0x00000006f0000000, 0x0000000700000000)
object space 262144K, 8% used [0x00000006e0000000,0x00000006e16f62a0,0x00000006f0000000)
Code Cache [0x0000000002790000, 0x0000000002ab0000, 0x0000000005790000)
total_blobs=1005 nmethods=418 adapters=547 free_code_cache=46058Kb largest_free_block=47116160
Dynamic libraries:
0x000000013f8e0000 - 0x000000013f913000 D:\Program Files\Java\jdk1.7.0_02\bin\java.exe
0x0000000076cd0000 - 0x0000000076e79000 C:\Windows\SYSTEM32\ntdll.dll
0x00000000765f0000 - 0x000000007670f000 C:\Windows\system32\kernel32.dll
0x000007fefd280000 - 0x000007fefd2ec000 C:\Windows\system32\KERNELBASE.dll
0x000007fefdcf0000 - 0x000007fefddcb000 C:\Windows\system32\ADVAPI32.dll
0x000007fefda10000 - 0x000007fefdaaf000 C:\Windows\system32\msvcrt.dll
0x000007fefed80000 - 0x000007fefed9f000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefdbc0000 - 0x000007fefdced000 C:\Windows\system32\RPCRT4.dll
0x0000000076bd0000 - 0x0000000076cca000 C:\Windows\system32\USER32.dll
0x000007fefdb50000 - 0x000007fefdbb7000 C:\Windows\system32\GDI32.dll
0x000007fefd7d0000 - 0x000007fefd7de000 C:\Windows\system32\LPK.dll
0x000007fefde80000 - 0x000007fefdf49000 C:\Windows\system32\USP10.dll
0x000007fefb8d0000 - 0x000007fefbac4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefd910000 - 0x000007fefd981000 C:\Windows\system32\SHLWAPI.dll
0x000007fefeda0000 - 0x000007fefedce000 C:\Windows\system32\IMM32.DLL
0x000007fefd7e0000 - 0x000007fefd8e9000 C:\Windows\system32\MSCTF.dll
0x000000006e340000 - 0x000000006e411000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\msvcr100.dll
0x000000006ab50000 - 0x000000006b22a000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\server\jvm.dll
0x000007fef9a90000 - 0x000007fef9a99000 C:\Windows\system32\WSOCK32.dll
0x000007fefddd0000 - 0x000007fefde1d000 C:\Windows\system32\WS2_32.dll
0x000007fefd500000 - 0x000007fefd508000 C:\Windows\system32\NSI.dll
0x000007fefa8f0000 - 0x000007fefa92b000 C:\Windows\system32\WINMM.dll
0x0000000076e90000 - 0x0000000076e97000 C:\Windows\system32\PSAPI.DLL
0x0000000073180000 - 0x000000007318f000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\verify.dll
0x000000006ead0000 - 0x000000006eaf8000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\java.dll
0x000000006cac0000 - 0x000000006caf5000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\jdwp.dll
0x000000006ca90000 - 0x000000006cab3000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\instrument.dll
0x0000000071000000 - 0x0000000071008000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\npt.dll
0x0000000073110000 - 0x0000000073125000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\zip.dll
0x0000000071010000 - 0x0000000071019000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\dt_socket.dll
0x000007fefc9a0000 - 0x000007fefc9f5000 C:\Windows\system32\mswsock.dll
0x000007fefc2f0000 - 0x000007fefc2f7000 C:\Windows\System32\wshtcpip.dll
0x0000000073080000 - 0x0000000073099000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\net.dll
0x000007fefc990000 - 0x000007fefc997000 C:\Windows\System32\wship6.dll
0x0000000070c40000 - 0x0000000070c51000 D:\Program Files\Java\jdk1.7.0_02\jre\bin\nio.dll
0x000007fefca00000 - 0x000007fefca17000 C:\Windows\system32\CRYPTSP.dll
0x000007fefc700000 - 0x000007fefc747000 C:\Windows\system32\rsaenh.dll
0x000007fefc430000 - 0x000007fefc44e000 C:\Windows\system32\USERENV.dll
0x000007fefd130000 - 0x000007fefd13f000 C:\Windows\system32\profapi.dll
0x000007fefd060000 - 0x000007fefd06f000 C:\Windows\system32\CRYPTBASE.dll
VM Arguments:
jvm_args: -javaagent:D:\Projects\foo\Lib\play-custom\framework/play-master-localbuild.jar -XX:MaxPermSize=512M -XX:PermSize=256M -Xms1024M -Xmx4096M -XX:-UseSplitVerifier -Dfile.encoding=utf-8 -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dapplication.path=D:\Projects\foo\Jeu -Dplay.id=
java_command: play.server.Server
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=D:\Program Files\Java\jdk1.7.0_02
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
PATH=C:\Program Files (x86)\...........
USERNAME=Fabien
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 30 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 12513668k(7766556k free), swap 25025484k(19054484k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (22.0-b10) for windows-amd64 JRE (1.7.0_02-b13), built on Nov 17 2011 13:51:15 by "java_re" with unknown MS VC++:1600
time: Sat Dec 08 16:25:25 2012
elapsed time: 8 seconds
It seems you've hit a JVM bug. I've found the following using some google: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7064302
Solution: Update the JVM to the current version.

My library on multiples connections with my JNI applications

I am developing a java application which uses a c++ library. My application type is an client/server RCP (eclipse plugin based). The problem is when I try to connect more than 2 clients to my server, it always frozes. What is strange is that this problem happens, only when running it in Windows. In Linux, it works fine.
I want to notice also, that, programatically, the clients are represented by C++ threads. May be, they want to access the same resource. If I let the application running, waiting it to defroze, it crashes and generates the log shown below
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6b88cd86, pid=2972, tid=3700
#
# Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode windows-x86)
# Problematic frame:
# C [libtlmdevice_ycp-3-0-0.dll+0x4cd86]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x637f0800): JavaThread "Thread-4" [_thread_in_native, id=3700, stack(0x687a0000,0x687f0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x0000000c
Registers:
EAX=0x00000000, EBX=0x6b87b418, ECX=0x003fcd58, EDX=0x00000000
ESP=0x687efaa8, EBP=0x687efaa8, ESI=0x003ffeb8, EDI=0x637f0800
EIP=0x6b88cd86, EFLAGS=0x00010202
Top of Stack: (sp=0x687efaa8)
0x687efaa8: 687efb08 6b86246a 00000000 6b897954
0x687efab8: 00000001 6b87b418 003ffeb8 637f0800
0x687efac8: 687efae8 6b87a97c 688946e8 00000000
0x687efad8: 00000001 00000000 68893500 633b3f02
0x687efae8: 687efb02 6b88d032 00000002 00000000
0x687efaf8: 00000000 6b87b418 003ffeb8 637f0800
0x687efb08: 687efb48 6b87b312 003fcd58 00000002
0x687efb18: 00000000 00000011 687efb58 7c90da1c
Instructions: (pc=0x6b88cd86)
0x6b88cd76: 08 0f b6 45 fc 88 42 08 c9 c3 55 89 e5 8b 45 08
0x6b88cd86: 8b 40 0c 5d c3 90 55 89 e5 53 83 ec 14 8b 45 08
Stack: [0x687a0000,0x687f0000], sp=0x687efaa8, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libtlmdevice_ycp-3-0-0.dll+0x4cd86]
C [libtlmdevice_ycp-3-0-0.dll+0x2246a]
C [libtlmdevice_ycp-3-0-0.dll+0x3b312]
C [libtlmdevice_ycp-3-0-0.dll+0x3b42c]
C [libtlmdevice_ycp-3-0-0.dll+0x3db81]
C [libtlmdevice_ycp-3-0-0.dll+0x3de1c]
C [libtlmdevice_ycp-3-0-0.dll+0x22f70]
j com.st.tlmdevice.api.TlmdeviceServer.Initialize(Ljava/lang/String;IIII)I+0
j com.st.tlmdevice.api.TlmdeviceServer.run()V+40
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.st.tlmdevice.api.TlmdeviceServer.Initialize(Ljava/lang/String;IIII)I+0
j com.st.tlmdevice.api.TlmdeviceServer.run()V+40
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x66e52800 JavaThread "Thread-17" [_thread_in_native, id=1324, stack(0x68c30000,0x68c80000)]
0x63063000 JavaThread "Thread-15" [_thread_in_native, id=3060, stack(0x68b30000,0x68b80000)]
0x63035000 JavaThread "Thread-16" [_thread_in_native, id=3720, stack(0x68970000,0x689c0000)]
0x637e5800 JavaThread "Thread-14" [_thread_in_native, id=2672, stack(0x689c0000,0x68a10000)]
0x66da4400 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=1532, stack(0x6bf00000,0x6bf50000)]
=>0x637f0800 JavaThread "Thread-4" [_thread_in_native, id=3700, stack(0x687a0000,0x687f0000)]
0x637ec800 JavaThread "Thread-5" [_thread_blocked, id=796, stack(0x68750000,0x687a0000)]
0x66be8c00 JavaThread "Worker-1" [_thread_blocked, id=2016, stack(0x684c0000,0x68510000)]
0x66b67400 JavaThread "Worker-0" [_thread_blocked, id=2336, stack(0x67ac0000,0x67b10000)]
0x63408400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3360, stack(0x63760000,0x637b0000)]
0x633ffc00 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=1268, stack(0x636c0000,0x63710000)]
0x633e6c00 JavaThread "State Data Manager" daemon [_thread_blocked, id=1968, stack(0x63670000,0x636c0000)]
0x63025000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3936, stack(0x63270000,0x632c0000)]
0x6301ec00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=468, stack(0x63220000,0x63270000)]
0x6301d400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2560, stack(0x631d0000,0x63220000)]
0x6301c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2716, stack(0x63180000,0x631d0000)]
0x6300c400 JavaThread "Finalizer" daemon [_thread_blocked, id=456, stack(0x63130000,0x63180000)]
0x63007800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1400, stack(0x630e0000,0x63130000)]
0x003a6c00 JavaThread "main" [_thread_in_native, id=448, stack(0x008c0000,0x00910000)]
Other Threads:
0x63004000 VMThread [stack: 0x63090000,0x630e0000] [id=1424]
0x63038800 WatcherThread [stack: 0x632c0000,0x63310000] [id=2604]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 36352K, used 165K [0x02990000, 0x05100000, 0x07850000)
eden space 32320K, 0% used [0x02990000, 0x029b9740, 0x04920000)
from space 4032K, 0% used [0x04920000, 0x04920000, 0x04d10000)
to space 4032K, 0% used [0x04d10000, 0x04d10000, 0x05100000)
tenured generation total 483968K, used 30304K [0x07850000, 0x250f0000, 0x42990000)
the space 483968K, 6% used [0x07850000, 0x095e83f8, 0x095e8400, 0x250f0000)
compacting perm gen total 28928K, used 28902K [0x42990000, 0x445d0000, 0x62990000)
the space 28928K, 99% used [0x42990000, 0x445c9ac0, 0x445c9c00, 0x445d0000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\javaw.exe
0x7c900000 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db06000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d340000 - 0x6d348000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d860000 - 0x6d86c000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\zip.dll
0x72000000 - 0x72014000 C:\STM\STWorkbenchR4.1.1\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x63530000 - 0x63568000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x63610000 - 0x63665000 C:\WINDOWS\system32\netapi32.dll
0x6d6c0000 - 0x6d6d3000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x6d6e0000 - 0x6d6e9000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\nio.dll
0x673d0000 - 0x67425000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\561\1\.cp\swt-win32-3452.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x771b0000 - 0x7727e000 C:\WINDOWS\system32\WININET.dll
0x67440000 - 0x67449000 C:\WINDOWS\system32\Normaliz.dll
0x67450000 - 0x67495000 C:\WINDOWS\system32\iertutil.dll
0x67730000 - 0x67744000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\561\1\.cp\swt-gdip-win32-3452.dll
0x67750000 - 0x678f6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5512_x-ww_dfb54e0c\gdiplus.dll
0x74c80000 - 0x74cac000 C:\WINDOWS\system32\oleacc.dll
0x76080000 - 0x760e5000 C:\WINDOWS\system32\MSVCP60.dll
0x68040000 - 0x68305000 C:\WINDOWS\system32\xpsp2res.dll
0x76380000 - 0x76385000 C:\WINDOWS\system32\msimg32.dll
0x67b10000 - 0x67b1f000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\362\1\.cp\jWinHttp.dll
0x67b30000 - 0x67b89000 C:\WINDOWS\system32\WINHTTP.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x75cf0000 - 0x75d81000 C:\WINDOWS\system32\mlang.dll
0x70d00000 - 0x70d23000 C:\test\i686-win5.1-gcc_4.1.1_mingw-2-jdk_1.6.0_12-yac_1.2.5\bin\libyacapi.dll
0x6b840000 - 0x6bef9000 C:\test\i686-win5.1-gcc_4.1.1_mingw-2-jdk_1.6.0_12-yac_1.2.5\bin\libtlmdevice_ycp-3-0-0.dll
0x687f0000 - 0x68848000 C:\WINDOWS\system32\hnetcfg.dll
0x73080000 - 0x7309d000 C:\WINDOWS\system32\rsvpsp.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d5d0000 - 0x6d5f4000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\jsound.dll
0x6d600000 - 0x6d608000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\jsoundds.dll
0x73f10000 - 0x73f6c000 C:\WINDOWS\system32\DSOUND.dll
0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
0x73ee0000 - 0x73ee4000 C:\WINDOWS\system32\KsUser.dll
VM Arguments:
jvm_args: -Xms512m -Xmx1g -XX:MaxPermSize=512m -Declipse.pde.launch=true -Dfile.encoding=Cp1252
java_command: org.eclipse.equinox.launcher.Main -launcher C:\STM\STWorkbenchR4.1.1\eclipse.exe -name Eclipse -showsplash 600 -product com.st.platform.st_ide -data C:\Documents and Settings\turkia\workspace2/../runtime-New_configuration -configuration file:C:/Documents and Settings/turkia/workspace2/.metadata/.plugins/org.eclipse.pde.core/New_configuration/ -dev file:C:/Documents and Settings/turkia/workspace2/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86 -nl en_US
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/spg/ext_tools/jdk/i686-win5.1/jdk1.6.0_12/bin/../jre/bin/client;C:/spg/ext_tools/jdk/i686-win5.1/jdk1.6.0_12/bin/../jre/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
USERNAME=turkia
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 15 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2086444k(1045564k free), swap 4024844k(2273736k free)
vm_info: Java HotSpot(TM) Client VM (11.2-b01) for windows-x86 JRE (1.6.0_12-b04), built on Jan 17 2009 09:57:14 by "java_re" with MS VC++ 7.1
time: Thu Mar 03 11:07:22 2011
elapsed time: 334 seconds
libtlmdevice_ycp-3-0-0.dll is the library I am using
If you have any idea :)
Thanks in advance.
kind regards,
Ali.
The native code needs to attach to the jvm using AttachCurrentThread and use the JNIEnv pointer provided by this function. You cannot just use the first JNIEnv your c++ lib got its hands on.
Also, there's a good chance that the c++ lib isn't thread-safe, can't tell without seeing source.

Does JNI differ in JRE 1.4 and JRE 1.6 ? Our lib now crashes

I'm responsible for maintaining a java swing application. It used to run quite fine with java 1.4, but with the time we encountered more and more crashes of the JRE that made us upgrade to the JRE 1.6, which at least is still maintained by Sun.
With the JRE 1.6 we now encounter a different kind of problem, in the part displaying ECW image files thanks to JNI and the native dlls NCSEcw.dll, NCSUtil.dll and NCScnet.dll (which are produced by ERDAS and can be found here : http://www.erdas.com/Products/ERDASDownloads/tabid/192/CurrentID/2560/Default.aspx ).
Most of the time the problem is a freeze (probably a deadlock) but one or two times we had real crashes of the JRE, with the hs_err_pid message I copied below. It does not appear on all machines, and is not systematic on the concerned machines (though very frequent). Most of the concerned machines seem to be running Windows 2000 SP4, but it appeared also on some XP machines and I can't find the criterion which differentiates them.
Is there a difference in the way JNI calls the library that make it work with 1.4 and not with 1.6 ? I'm a bit lost, thanks for any clue.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5ffa1049, pid=2196, tid=2244
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode windows-x86 )
# Problematic frame:
# C [NCSEcw.dll+0x1049]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x33893800): JavaThread "Pool-1" [_thread_in_native, id=2244, stack(0x36580000,0x36680000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x38e681d0, ECX=0x3460ff88, EDX=0x0000019c
ESP=0x3667f6e0, EBP=0x00000000, ESI=0x00000004, EDI=0x00000000
EIP=0x5ffa1049, EFLAGS=0x00010206
Top of Stack: (sp=0x3667f6e0)
0x3667f6e0: 00000010 3460ffa0 3895e5a8 38e68248
0x3667f6f0: 00000000 40000000 00000004 00000001
0x3667f700: 00000000 5ffa109f 3460fea8 34600005
0x3667f710: 000005ea 3460ffa0 00000010 38e68ec8
0x3667f720: 3865dd98 38e682c0 00000001 38e68338
0x3667f730: 00000007 3a416e6c 3895feac 5ffa109f
0x3667f740: 3460fea8 34600006 00000bb5 38e68ec8
0x3667f750: 00000010 3895ffd0 3a415568 38e68338
Instructions: (pc=0x5ffa1049)
0x5ffa1039: ff 8b c7 be 04 00 00 00 8b 4b 04 8b 6b 08 03 c8
0x5ffa1049: 8b 2c 28 83 c0 04 8b 11 89 29 8b 4b 08 4e 89 54
Stack: [0x36580000,0x36680000], sp=0x3667f6e0, free space=3fd3667f23ck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [NCSEcw.dll+0x1049]
[error occurred during error reporting (printing native stack), id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.ermapper.ecw.JNCSFile.ECWReadImageRGBA([III)I+0
j com.ermapper.ecw.JNCSFile.readImageRGBA([III)I+4
j com.ermapper.ecw.JNCSRenderer.ecwReadImage(IIDDDD)Z+98
j com.ermapper.ecw.JNCSRenderer.drawImage(Ljava/awt/Graphics;IIIIDDDDLjava/awt/image/ImageObserver;)V+39
j com.esrifrance.moje.ecw.ECWLayer.drawAvecRenderer(Lcom/esri/mo2/map/dpy/DisplayArea;)V+286
j com.esrifrance.moje.ecw.ECWLayer.drawWithinScale(Lcom/esri/mo2/map/dpy/DisplayArea;I)V+63
j com.esri.mo2.map.dpy.BaseLayer.draw(Lcom/esri/mo2/map/dpy/DisplayArea;I)V+16
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.a(Lcom/esri/mo2/map/dpy/Layer;)V+18
j com.esri.mo2.map.dpy.BaseDisplayManager$d_$a_.visiting(Lcom/esri/mo2/map/dpy/Layer;)Z+5
J com.esri.mo2.map.dpy.BaseGroupLayer.a(Lcom/esri/mo2/map/dpy/LayerVisitor;ZI)V
J com.esri.mo2.map.dpy.BaseGroupLayer.a(Lcom/esri/mo2/map/dpy/LayerVisitor;)V
j com.esri.mo2.map.dpy.BaseGroupLayer.traverse(Lcom/esri/mo2/map/dpy/LayerVisitor;Z)V+37
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.m()V+15
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.run()V+49
j com.esri.mo2.sys.tp.ThreadPool$a_.run()V+39
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x33855c00 JavaThread "RetrieveThread-31" [_thread_in_native, id=2236, stack(0x3c880000,0x3c980000)]
0x34788400 JavaThread "Thread-17" [_thread_in_native, id=2120, stack(0x3b2a0000,0x3b3a0000)]
0x34723c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=960, stack(0x3b1a0000,0x3b2a0000)]
0x33892400 JavaThread "Timer-0" [_thread_blocked, id=1664, stack(0x38660000,0x38760000)]
0x34796400 JavaThread "Swing-Shell" daemon [_thread_blocked, id=2500, stack(0x36990000,0x36a90000)]
0x33894800 JavaThread "Pool-2" [_thread_blocked, id=2440, stack(0x36680000,0x36780000)]
=>0x33893800 JavaThread "Pool-1" [_thread_in_native, id=2244, stack(0x36580000,0x36680000)]
0x342b5400 JavaThread "Pool-0" [_thread_blocked, id=612, stack(0x36480000,0x36580000)]
0x34859400 JavaThread "Thread-6" daemon [_thread_in_native, id=2044, stack(0x36380000,0x36480000)]
0x342e9800 JavaThread "DispatcherThread-4" [_thread_blocked, id=2232, stack(0x35680000,0x35780000)]
0x346e5c00 JavaThread "TimerQueue" daemon [_thread_blocked, id=2004, stack(0x34c50000,0x34d50000)]
0x346c5800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=792, stack(0x34b50000,0x34c50000)]
0x34208000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2452, stack(0x344f0000,0x345f0000)]
0x34230400 JavaThread "AWT-Shutdown" [_thread_blocked, id=744, stack(0x343f0000,0x344f0000)]
0x34195800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2180, stack(0x342f0000,0x343f0000)]
0x33881000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2420, stack(0x33ef0000,0x33ff0000)]
0x3387b400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2292, stack(0x33df0000,0x33ef0000)]
0x33879c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2020, stack(0x33cf0000,0x33df0000)]
0x33878400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1404, stack(0x33bf0000,0x33cf0000)]
0x33868400 JavaThread "Finalizer" daemon [_thread_blocked, id=2436, stack(0x33af0000,0x33bf0000)]
0x33863800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2404, stack(0x339f0000,0x33af0000)]
0x00877400 JavaThread "main" [_thread_blocked, id=2280, stack(0x00030000,0x00130000)]
Other Threads:
0x33860c00 VMThread [stack: 0x338f0000,0x339f0000] [id=2364]
0x3388c000 WatcherThread [stack: 0x33ff0000,0x340f0000] [id=2384]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 53248K, used 13986K [0x02940000, 0x06300000, 0x117e0000)
eden space 47360K, 29% used [0x02940000, 0x036e8818, 0x05780000)
from space 5888K, 0% used [0x05780000, 0x05780000, 0x05d40000)
to space 5888K, 0% used [0x05d40000, 0x05d40000, 0x06300000)
tenured generation total 118120K, used 70871K [0x117e0000, 0x18b3a000, 0x2f540000)
the space 118120K, 59% used [0x117e0000, 0x15d15df0, 0x15d15e00, 0x18b3a000)
compacting perm gen total 29696K, used 29522K [0x2f540000, 0x31240000, 0x33540000)
the space 29696K, 99% used [0x2f540000, 0x31214ac8, 0x31214c00, 0x31240000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00455000 C:\Program Files\Sipa2010\Sipa.exe
0x78460000 - 0x784e1000 C:\WINNT\system32\ntdll.dll
0x78ed0000 - 0x78f32000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f34000 C:\WINNT\system32\KERNEL32.DLL
0x770c0000 - 0x77131000 C:\WINNT\system32\RPCRT4.DLL
0x77e00000 - 0x77e65000 C:\WINNT\system32\USER32.dll
0x77f40000 - 0x77f7c000 C:\WINNT\system32\GDI32.DLL
0x77810000 - 0x77817000 C:\WINNT\system32\VERSION.dll
0x75950000 - 0x75956000 C:\WINNT\system32\LZ32.DLL
0x6d8b0000 - 0x6db47000 c:\program files\sipa2010\jre\bin\client\jvm.dll
0x77540000 - 0x77571000 C:\WINNT\system32\WINMM.dll
0x7c340000 - 0x7c396000 C:\WINNT\system32\MSVCR71.dll
0x6d860000 - 0x6d86c000 c:\program files\sipa2010\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 c:\program files\sipa2010\jre\bin\java.dll
0x6d340000 - 0x6d348000 c:\program files\sipa2010\jre\bin\hpi.dll
0x68ea0000 - 0x68eab000 C:\WINNT\system32\PSAPI.DLL
0x6d8a0000 - 0x6d8af000 c:\program files\sipa2010\jre\bin\zip.dll
0x6d0b0000 - 0x6d1fa000 C:\Program Files\Sipa2010\jre\bin\awt.dll
0x777f0000 - 0x7780e000 C:\WINNT\system32\WINSPOOL.DRV
0x793c0000 - 0x793d1000 C:\WINNT\system32\MPR.DLL
0x75e00000 - 0x75e1a000 C:\WINNT\system32\IMM32.dll
0x77a40000 - 0x77b37000 C:\WINNT\system32\ole32.dll
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.dll
0x6e350000 - 0x6e356000 C:\WINNT\system32\INDICDLL.dll
0x77580000 - 0x777cf000 C:\WINNT\system32\shell32.dll
0x77290000 - 0x772f6000 C:\WINNT\system32\SHLWAPI.DLL
0x78000000 - 0x78045000 C:\WINNT\system32\msvcrt.dll
0x6d2e0000 - 0x6d334000 C:\Program Files\Sipa2010\jre\bin\fontmanager.dll
0x6d6c0000 - 0x6d6d3000 C:\Program Files\Sipa2010\jre\bin\net.dll
0x74fb0000 - 0x74fc4000 C:\WINNT\system32\WS2_32.dll
0x74fa0000 - 0x74fa8000 C:\WINNT\system32\WS2HELP.DLL
0x6d6e0000 - 0x6d6e9000 C:\Program Files\Sipa2010\jre\bin\nio.dll
0x77830000 - 0x7783c000 C:\WINNT\System32\rnr20.dll
0x77970000 - 0x77994000 C:\WINNT\system32\DNSAPI.DLL
0x74fd0000 - 0x74fd9000 C:\WINNT\system32\WSOCK32.DLL
0x77310000 - 0x77323000 C:\WINNT\system32\iphlpapi.dll
0x774f0000 - 0x774f5000 C:\WINNT\system32\ICMP.DLL
0x34da0000 - 0x34db7000 C:\WINNT\system32\MPRAPI.DLL
0x750d0000 - 0x750df000 C:\WINNT\system32\SAMLIB.DLL
0x7ccc0000 - 0x7cd10000 C:\WINNT\system32\NETAPI32.DLL
0x78fb0000 - 0x78fbf000 C:\WINNT\system32\Secur32.dll
0x77be0000 - 0x77bf1000 C:\WINNT\system32\NTDSAPI.dll
0x77940000 - 0x7796b000 C:\WINNT\system32\WLDAP32.DLL
0x75140000 - 0x75146000 C:\WINNT\system32\NETRAP.dll
0x779a0000 - 0x77a3b000 C:\WINNT\system32\OLEAUT32.DLL
0x77380000 - 0x773b0000 C:\WINNT\system32\ACTIVEDS.DLL
0x77350000 - 0x77373000 C:\WINNT\system32\ADSLDPC.DLL
0x77820000 - 0x7782e000 C:\WINNT\system32\RTUTILS.DLL
0x783c0000 - 0x78451000 C:\WINNT\system32\SETUPAPI.DLL
0x78d20000 - 0x78d83000 C:\WINNT\system32\USERENV.DLL
0x774b0000 - 0x774e3000 C:\WINNT\system32\RASAPI32.DLL
0x77490000 - 0x774a1000 C:\WINNT\system32\RASMAN.DLL
0x77500000 - 0x77522000 C:\WINNT\system32\TAPI32.DLL
0x77330000 - 0x77349000 C:\WINNT\system32\DHCPCSVC.DLL
0x777d0000 - 0x777d8000 C:\WINNT\System32\winrnr.dll
0x66210000 - 0x66219000 C:\WINNT\system32\netware\NWWS2NDS.DLL
0x50d50000 - 0x50d98000 C:\WINNT\system32\NETWIN32.DLL
0x50d00000 - 0x50d15000 C:\WINNT\system32\CLNWIN32.DLL
0x50df0000 - 0x50e10000 C:\WINNT\system32\LOCWIN32.DLL
0x50db0000 - 0x50ddc000 C:\WINNT\system32\NCPWIN32.dll
0x66220000 - 0x6622c000 C:\WINNT\system32\netware\NWWS2SLP.DLL
0x66250000 - 0x66257000 C:\WINNT\system32\NWSRVLOC.dll
0x74f50000 - 0x74f6e000 C:\WINNT\system32\msafd.dll
0x74f90000 - 0x74f97000 C:\WINNT\System32\wshtcpip.dll
0x777e0000 - 0x777e5000 C:\WINNT\system32\rasadhlp.dll
0x6d250000 - 0x6d273000 C:\Program Files\Sipa2010\jre\bin\dcpr.dll
0x7ca00000 - 0x7ca23000 C:\WINNT\system32\rsaenh.dll
0x77410000 - 0x77489000 C:\WINNT\system32\CRYPT32.dll
0x77400000 - 0x77410000 C:\WINNT\system32\MSASN1.DLL
0x72c60000 - 0x72ce6000 C:\WINNT\system32\CLBCATQ.DLL
0x77840000 - 0x77880000 C:\WINNT\system32\cscui.dll
0x77090000 - 0x770b3000 C:\WINNT\system32\CSCDLL.DLL
0x76dc0000 - 0x76dd2000 C:\WINNT\system32\mydocs.dll
0x36cf0000 - 0x36e3a000 C:\WINNT\system32\SHDOCVW.DLL
0x71e40000 - 0x71e8d000 C:\WINNT\system32\docprop2.dll
0x6a6f0000 - 0x6a710000 C:\WINNT\system32\MSVFW32.DLL
0x747f0000 - 0x74806000 C:\WINNT\system32\AVIFIL32.DLL
0x773e0000 - 0x773f3000 C:\WINNT\system32\MSACM32.dll
0x6ff60000 - 0x6ff65000 C:\WINNT\system32\faxshell.dll
0x37250000 - 0x372ab000 C:\Program Files\Fichiers communs\Adobe\Acrobat\ActiveX\PDFShell.dll
0x78130000 - 0x781cb000 C:\WINNT\system32\MSVCR80.dll
0x750e0000 - 0x750ec000 C:\WINNT\System32\ntlanman.dll
0x75190000 - 0x751a5000 C:\WINNT\System32\NETUI0.DLL
0x75150000 - 0x75188000 C:\WINNT\System32\NETUI1.DLL
0x58200000 - 0x582d1000 C:\WINNT\system32\NOVNPNT.DLL
0x50d20000 - 0x50d4d000 C:\WINNT\system32\CALWIN32.DLL
0x50da0000 - 0x50dab000 C:\WINNT\system32\CLXWIN32.DLL
0x58300000 - 0x5833b000 C:\WINNT\system32\MAPBASE.dll
0x58380000 - 0x583be000 C:\WINNT\system32\NWSHLXNT.dll
0x6a400000 - 0x6a41c000 C:\WINNT\system32\NLS\FRANCAIS\MAPBASER.DLL
0x37500000 - 0x3751d000 C:\WINNT\system32\NLS\FRANCAIS\NWSHLXNR.DLL
0x37520000 - 0x37596000 C:\WINNT\system32\NLS\FRANCAIS\NOVNPNTR.DLL
0x375a0000 - 0x376a2000 C:\Program Files\Sipa2010\jre\bin\esri_jni_mrsid.dll
0x377c0000 - 0x37ac1000 C:\Program Files\Sipa2010\jre\bin\mlib_jai.dll
0x5ff80000 - 0x5ff98000 C:\Program Files\Sipa2010\jre\bin\NCSUtil.dll
0x77910000 - 0x77933000 C:\WINNT\system32\IMAGEHLP.dll
0x5ffd0000 - 0x5ffe4000 C:\Program Files\Sipa2010\jre\bin\NCScnet.dll
0x5ffa0000 - 0x5ffcc000 C:\Program Files\Sipa2010\jre\bin\NCSEcw.dll
0x69a00000 - 0x69a1d000 C:\WINNT\system32\NTMARTA.DLL
0x6d500000 - 0x6d524000 C:\Program Files\Sipa2010\jre\bin\jpeg.dll
VM Arguments:
jvm_args: -Xms150000000 -Xmx750000000
java_command:
Launcher Type: generic
Environment Variables:
CLASSPATH=C:\Program Files\Sipa2010\impression.jar;C:\Program Files\Sipa2010\lib\moje21\jsde90_sdkres.jar;C:\Program Files\Sipa2010\lib\fop\xml-apis.jar;C:\Program Files\Sipa2010\SIPA.jar;C:\Program Files\Sipa2010\lib\fop\fop.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21img.jar;C:\Program Files\Sipa2010\lib\log4j-1.2.7.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21rpf.jar;C:\Program Files\Sipa2010\lib\moje21\mlibwrapper_jai.jar;C:\Program Files\Sipa2010\lib\fop\xercesImpl-2.2.1.jar;C:\Program Files\Sipa2010\lib\MDateSelector.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21.jar;C:\Program Files\Sipa2010\lib\moje21\jsde90_sdk.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21res.jar;C:\Program Files\Sipa2010\lib\moje21\esri_xmlkit.jar;C:\Program Files\Sipa2010\lib\moje21\jai_codec.jar;C:\Program Files\Sipa2010\lib\moje21\jai_core.jar;C:\Program Files\Sipa2010\lib\moje21\jpe90_sdk.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21vpf.jar;C:\Program Files\Sipa2010\lib\fop\avalon-framework-cvs-20020806.jar;C:\Program Files\Sipa2010\lib\fop\batik.jar;C:\Program Files\Sipa2010\lib\classes12.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21cad.jar;C:\Program Files\Sipa2010\lib\pdfbox-sword.jar;C:\Program Files\Sipa2010\lax.jar;C:\Program Files\Sipa2010\ecwermapperjni.jar;
PATH=C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\FRANCAIS;C:\Program Files\Novell\ZENworks
USERNAME=David
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 2000 Build 2195 Service Pack 4
CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 1047020k(341768k free), swap 1719680k(1051752k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Fri Jun 18 10:33:04 2010
elapsed time: 59 seconds
Jon has a hint that could explain your JNI problems after changing the JRE. Recompilation of the native libraries would be a solution, according to his answer.

Categories