JNA方式调用dll报错:A fatal error has been detected by the Java Runtime Environment:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe0434f4d), pid=5048, tid=1476
#
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode windows-x86 )
# Problematic frame:
# C [kernel32.dll+0x12afb]
#
# 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 (0x0084d000): JavaThread "main" [_thread_in_native, id=1476, stack(0x008e0000,0x00930000)]
siginfo: ExceptionCode=0xe0434f4d, ExceptionInformation=0x80070002
Registers:
EAX=0x0092e480, EBX=0xe0434f4d, ECX=0x00000000, EDX=0x00000028
ESP=0x0092e47c, EBP=0x0092e4d0, ESI=0x0092e50c, EDI=0x000cc030
EIP=0x7c812afb, EFLAGS=0x00000202
Top of Stack: (sp=0x0092e47c)
0x0092e47c: 0092e508 e0434f4d 00000001 00000000
0x0092e48c: 7c812afb 00000001 80070002 02000038
0x0092e49c: 0092e4ac 79e7f24c 0092e4b4 02000038
0x0092e4ac: 0092e4b8 79e7f6cf 79330dd8 0092e4c8
0x0092e4bc: 79f741e7 79317434 0000012f 0092e4d8
0x0092e4cc: 79f7420e 0092e530 79f74394 e0434f4d
0x0092e4dc: 00000001 00000001 0092e508 f39c2f53
0x0092e4ec: 00000000 32f556e4 00000000 008e3000
Instructions: (pc=0x7c812afb)
0x7c812aeb: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 10 15 80 7c
0x7c812afb: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
Stack: [0x008e0000,0x00930000], sp=0x0092e47c, free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [kernel32.dll+0x12afb]
C [mscorwks.dll+0x104394]
C [mscorwks.dll+0xfa8fc]
C [mscorwks.dll+0x28a27d]
C [mscorjit.dll+0x1a5c5]
C [mscorjit.dll+0x5b35]
C [mscorjit.dll+0x5d33]
C [mscorjit.dll+0x6448]
C [mscorwks.dll+0x34240]
C [mscorwks.dll+0x342d5]
C [mscorwks.dll+0x34348]
C [mscorwks.dll+0x340c1]
C [mscorwks.dll+0x33e83]
C [mscorwks.dll+0x10636]
C [mscorwks.dll+0x107f7]
C 0x3260277e
C [mscorwks.dll+0x1b4c]
C [mscorwks.dll+0x1968e]
C [mscorwks.dll+0x12ad52]
C [mscorwks.dll+0x12af0a]
C [mscorwks.dll+0x12b02e]
C 0x32602c2d
C [jna7876941578785754789.tmp+0xda37]
C [jna7876941578785754789.tmp+0x9182]
C [jna7876941578785754789.tmp+0x2161]
C [jna7876941578785754789.tmp+0x2849]
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.SendToGis(Lgis/GisUtil2$GisAlarm$ByValue;)Z+16
j gis.GisUtil2.main([Ljava/lang/String;)V+178
v ~StubRoutines::call_stub
V [jvm.dll+0xecf9c]
V [jvm.dll+0x1741e1]
V [jvm.dll+0xed01d]
V [jvm.dll+0xf5be5]
V [jvm.dll+0xfd83d]
C [javaw.exe+0x2155]
C [javaw.exe+0x833e]
C [kernel32.dll+0xb729]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.SendToGis(Lgis/GisUtil2$GisAlarm$ByValue;)Z+16
j gis.GisUtil2.main([Ljava/lang/String;)V+178
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x009fe000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2292, stack(0x31bd0000,0x31c20000)]
0x009f8000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4740, stack(0x31b80000,0x31bd0000)]
0x009f2800 JavaThread "Attach Listener" daemon [_thread_blocked, id=6016, stack(0x31b30000,0x31b80000)]
0x009f1800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4156, stack(0x31ae0000,0x31b30000)]
0x009df400 JavaThread "Finalizer" daemon [_thread_blocked, id=3860, stack(0x31a90000,0x31ae0000)]
0x009da800 JavaThread "Reference Handler" daemon [_thread_blocked, id=5752, stack(0x31a40000,0x31a90000)]
=>0x0084d000 JavaThread "main" [_thread_in_native, id=1476, stack(0x008e0000,0x00930000)]
Other Threads:
0x009d6800 VMThread [stack: 0x319f0000,0x31a40000] [id=608]
0x00a0ac00 WatcherThread [stack: 0x31c20000,0x31c70000] [id=3804]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 18176K, used 2916K [0x03b20000, 0x04ed0000, 0x06280000)
eden space 16192K, 18% used [0x03b20000, 0x03df9300, 0x04af0000)
from space 1984K, 0% used [0x04af0000, 0x04af0000, 0x04ce0000)
to space 1984K, 0% used [0x04ce0000, 0x04ce0000, 0x04ed0000)
tenured generation total 241984K, used 0K [0x06280000, 0x14ed0000, 0x23b20000)
the space 241984K, 0% used [0x06280000, 0x06280000, 0x06280200, 0x14ed0000)
compacting perm gen total 65536K, used 3317K [0x23b20000, 0x27b20000, 0x2fb20000)
the space 65536K, 5% used [0x23b20000, 0x23e5d738, 0x23e5d800, 0x27b20000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe
0x7c920000 - 0x7c9b6000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee3000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll
0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL
0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL
0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db3b000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\client\jvm.dll
0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll
0x6d860000 - 0x6d86c000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\java.dll
0x6d340000 - 0x6d348000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\hpi.dll
0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d8a0000 - 0x6d8af000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\zip.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x759d0000 - 0x75a7f000 C:\WINDOWS\system32\USERENV.dll
0x5fdd0000 - 0x5fe25000 C:\WINDOWS\system32\netapi32.dll
0x6d6c0000 - 0x6d6d3000 C:\Program Files\Java\jdk1.6.0_16\jre\bin\net.dll
0x71a20000 - 0x71a37000 C:\WINDOWS\system32\WS2_32.dll
0x71a10000 - 0x71a18000 C:\WINDOWS\system32\WS2HELP.dll
0x322c0000 - 0x323e0000 C:\Program Files\Sinfor\SSL\ClientComponent\ClientNSPPrj.dll
0x73d30000 - 0x73e2e000 C:\Program Files\Java\jdk1.6.0_16\bin\MFC42.DLL
0x76990000 - 0x76ace000 C:\WINDOWS\system32\ole32.dll
0x770f0000 - 0x7717b000 C:\WINDOWS\system32\OLEAUT32.dll
0x43ce0000 - 0x43e08000 C:\WINDOWS\system32\urlmon.dll
0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll
0x3eab0000 - 0x3eaf5000 C:\WINDOWS\system32\iertutil.dll
0x68d60000 - 0x68e01000 C:\WINDOWS\system32\dbghelp.dll
0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\VERSION.dll
0x61be0000 - 0x61bed000 C:\WINDOWS\system32\MFC42LOC.DLL
0x77180000 - 0x77283000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll
0x76fa0000 - 0x7701f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77020000 - 0x770ba000 C:\WINDOWS\system32\COMRes.dll
0x719c0000 - 0x719fe000 C:\WINDOWS\System32\mswsock.dll
0x76ef0000 - 0x76f17000 C:\WINDOWS\system32\DNSAPI.dll
0x76d30000 - 0x76d48000 C:\WINDOWS\system32\iphlpapi.dll
0x76f80000 - 0x76f88000 C:\WINDOWS\System32\winrnr.dll
0x76f30000 - 0x76f5c000 C:\WINDOWS\system32\WLDAP32.dll
0x76f90000 - 0x76f96000 C:\WINDOWS\system32\rasadhlp.dll
0x32580000 - 0x325d2000 C:\Documents and Settings\dinghongyu\Local Settings\Temp\jna7876941578785754789.tmp
0x325e0000 - 0x325f0000 D:\WorkSpaces\SHUNDE2\Epolice20110629\WebRoot\WEB-INF\classes\gis\GisDllWrap.dll
0x79000000 - 0x7904a000 C:\WINDOWS\system32\mscoree.dll
0x78520000 - 0x785c3000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.5570_x-ww_0517bbc6\MSVCR90.dll
0x783f0000 - 0x78433000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.5570_x-ww_0517bbc6\msvcm90.dll
0x79e70000 - 0x7a419000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
0x78130000 - 0x781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.dll
0x7d590000 - 0x7dd84000 C:\WINDOWS\system32\shell32.dll
0x790c0000 - 0x79bb8000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\ca87ba84221991839abbe7d4bc9c6721\mscorlib.ni.dll
0x79060000 - 0x790bb000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
0x7a440000 - 0x7abd9000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\9e3803cd2a11f056291862e306a8e2b2\System.ni.dll
0x65150000 - 0x657a3000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Data\ae888f8633fce3ff1de98e32bce0abbf\System.Data.ni.dll
0x64e70000 - 0x65144000 C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
0x765e0000 - 0x76673000 C:\WINDOWS\system32\CRYPT32.dll
0x76db0000 - 0x76dc2000 C:\WINDOWS\system32\MSASN1.dll
VM Arguments:
jvm_args: -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=192m -XX:ReservedCodeCacheSize=48m -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8
java_command: gis.GisUtil2
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_16\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar
PATH=C:/Program Files/Java/jdk1.6.0_16/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_16/bin/../jre/bin;D:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Java\jdk1.6.0_16\bin;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;
USERNAME=dinghongyu
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 4 (8 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, ht
Memory: 4k page, physical 2097151k(2097151k free), swap 4194303k(4194303k free)
vm_info: Java HotSpot(TM) Client VM (14.2-b01) for windows-x86 JRE (1.6.0_16-b01), built on Jul 31 2009 11:26:58 by "java_re" with MS VC++ 7.1
time: Thu May 31 20:32:35 2012
elapsed time: 0 seconds
1 楼 pcmlose 2012-06-28 什么意思嘛,没解决方案放上来干啥呢