Write a Java program in myeclipse and try to call the encapsulated DLL. the following error occurs in the console:
# An Unexpected error has been detected by hotspot virtual machine:
#
# Prediction_access_violation (0xc0000005) at PC = 0x10005301, pid = 708, tid = 3224
#
# Java VM: Java hotspot (TM) Client VM (1.5.0 _ 13-b05 mixed mode, sharing)
# Problematic frame:
# C [kdccavayacomm. dll + 0x5301]
#
# An error report file with more information is saved as hs_err_pid708.log
#
# If you wowould like to submit a bug report, please visit:
# Http://java.sun.com/webapps/bugreport/crash.jsp
#
There are a bunch of logs in the hs_err_pid708.log file, and nothing can be seen. It's a JVM error. RememberDLLThe thrown exception cannot be captured by the JVM, so the JVM is forced to stop .. Crash
Since there is a DLL exception, it seems that the C ++ program or the JNI part has an error. The C ++ program to be called by JNI is certainly correct. The problem must be caused by the JNI call, at the same time, if the interface without parameters is found to be normal, a problem occurs when the method with parameters is called, and try {} catch (...) is used (...) {} found that the JNI code had an error, dizzy, and the problem was still located at the beginning and it felt like something went wrong! Check whether there are any problems with method calls or parameter passing in JNI! After a few years of Java Development, I suddenly wanted to make C ++ a big start. It is estimated that similar problems are also very big!
However, I first searched the internet for half a day.
Prediction_access_violation (0xc0000005) since there is no desirable answer, only find this sentence (DLLThe thrown exception cannot be captured by the JVM, so the JVM is forced to stop ..) This is the most useful, so if you use JNI for the first time, you can directly check whether the JNI code is correct. Of course, there are more authoritative materials, if you want to check it out!
#
# An Unexpected error has been detected by Java Runtime Environment:
#
# Prediction_access_violation (0xc0000005) at PC = 0x6d90df57, pid = 3104, tid = 3820
#
# Java VM: Java hotspot (TM) Client VM (11.0-B15 mixed mode windows-x86)
# Problematic frame:
# V [JVM. dll + 0x5df57]
#
# If you wowould like to submit a bug report, please visit:
# Http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T h r e a d ---------------
Current thread (0x01b36c00): vmthread [Stack: 0x019e0000, 0x01a30000] [ID = 3820]
Siginfo: exceptioncode = 0xc0000005, reading address 0x0000000c
Registers:
Eax = 0x01abfd40, EBX = 0x01abfd7c, ECx = 0x00000000, EDX = 0x6da8c108
ESP = 0x01a2f7ac, EBP = 0x01abfcf0, ESI = 0x09849a88, EDI = 0x09849a88
EIP = 0x6d90df57, eflags = 0x00010283
Top of Stack: (sp = 0x01a2f7ac)
0x01a2f7ac: 09849a88 09849a88 6da2ecc0 6d8ce6eb
0x01a2f7bc: 09849a88 01a2f804 01a2f804 00000002
0x01a2f7cc: 01a9dca8 6d95f8b1 09849c98 01abfb48
0x01a2f7dc: 6d95f681 01abfd40 6d92e9e3 01a2f804
0x01a2f7ec: 00000000 01a9dd00 09849c98 6d95f497
0x01a2f7fc: 01a2f804 00000000 6da948c8 09849c98
0x01a2f80c: 00000000 6d95a123 09849c98 09849c98
0x01a2f81c: 00000000 01a2f934 00000000 6d9ef6a3
Instructions: (Pc = 0x6d90df57)
0x6d90df47: CC 51 56 8B F1 8B 4E 04
0x6d90df57: 8B 51 0C 83 C1 08 8B C2 C1 F8 02 85 D2 89 54 24
STACK: [0x019e0000, 0x01a30000], SP = 0x01a2f7ac, free space = 317 K
Native frames: (j = compiled Java code, j = interpreted, VV = VM code, c = native code)
V [JVM. dll + 0x5df57]
Vm_operation (0x0d99f56c): gencollectfull, mode: safepoint, requested by thread 0x0c82c000
--------------- P r o c e s ---------------
Java threads: (=> current thread)
0x0c6a8000 javathread "has been written in comparison with the zookeeper, Zookeeper, and zookeeper.! There are two major issues in these cases: please refer to the following link for more information: please refer to the following: please refer to the following link for more information: please refer to the following link for more information: why? Why? Why? Why? Why? Why? € ~ Why are there too many problems? Why? Why? € (€ ) Yundun
What is the problem? Why? Zookeeper yundun♀Attack a typical attack, and then there is a huge amount of evidence? How long is it? Why should I renew my shift? He was a top-notch hacker, and he was very careful about the problem. why? He is a top-ranking employee and has been hired for his/her job. He/she has been engaged in the use of hongxi, which has been widely used.
Why? Why? (€ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 please refer to the following link for more information: please refer to the following link for more information: please refer to the following documents for more information:? Daemon [_ thread_blocked, id = 9752, stack (0x0e2c0000, 0x0e310000)]
0x0c830c00 javathread "unknown thread" [_ thread_blocked, id = 6888, stack (0x0dea0000, 0x0def0000)]
0x0c6a7c00 javathread "commandid €? There is a huge amount of yundun in the market. please refer to the following link for more information: please refer to the following link for more information: please refer to the following example: why? Please refer to the following link for more information: please refer to the following link for more information: there are still some special sacrifices made during the festival. too many tasks? The yundun
Why? Zookeeper yundun why are there too many other users? Why? Strong online sales have been changed! There are two major reasons for this problem: Why? why? Senior executives are eager to hear from Feng Yun every time, for example, {}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% why does calcium Taiping have? Why? Please refer to the following example for more information: How can I analyze the distribution of hybriddb for MySQL? Success! Please refer to the following documents for more information: there are too many Hao technical staff who have been using these products. They have been using these products. zookeeper zookeeper comment comment please refer to the following link for more information: why are there too many reasons? Please refer to the following example for the high-availability and high-availability yundun
Why? There are too many zookeeper in the United States. There are too many zookeeper yundun. why are there too many other users? Why? When the top job is running, they will be ready soon! Why? [_ Thread_blocked, id = 6972, stack (0x0e270000, 0x0e2c0000)]
0x0c6a7400 javathread "unknown thread" daemon [_ thread_blocked, id = 6684, stack (0x0e220000, 0x0e270000)]
0x0c6a7000
[Error occurred during Error Reporting (printing all threads), Id 0xc0000005]
VM state: At safepoint (normal execution)
VM mutex/monitor currently owned by a thread: ([mutex/lock_event])
[0x01a97af0] unknown-owner thread: 0x01b36c00
[0x01a97f50] unknown-owner thread: 0x0c82c000
Heap
Def New Generation total 2816 K, used 1313 K [0x03ba0000, 0x03ea0000, 0x04080000)
Eden space 2560 K, 41% used [0x03ba0000, 0x03ca85e0, 0x03e20000)
From space 256 K, 100% used [0x03e60000, 0x03ea0000, 0x03ea0000)
To space 256 K, 0% used [0x03e20000, 0x03e20000, 0x03e60000)
Tenured generation total 36360 K, used 33780 K [0x04080000, 0x06402000, 0x07ba0000)
The space 36360 K, 92% used [0x04080000, 0x0617d1d8, 0x05677c00, 0x06402000)
Compacting perm Gen total 45056 K, used 45055 K [0x07ba0000, 0x0a7a0000, 0x0bba0000)
The space 45056 K, 99% used [0x07ba0000, 0x0a79fff0, 0x0a700400, 0x0a7a0000)
No shared spaces configured.
Dynamic libraries:
0x00400000-0x00424000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin \ javaw.exe
0x77250000-0x7738c000 c: \ windows \ system32 \ NTDLL. dll
0x76510000-0x765e4000 c: \ windows \ system32 \ kernel32.dll
0x75660000-0x756aa000 c: \ windows \ system32 \ kernelbase. dll
0x76c90000-0x76d30000 c: \ windows \ system32 \ advapi32.dll
0x76f60000-0x7700c000 c: \ windows \ system32 \ msvcrt. dll
0x76a10000-0x76a29000 c: \ windows \ system32 \ sechost. dll
0x767b0000-0x76851000 c: \ windows \ system32 \ rpcrt4.dll
0x77180000-0x77249000 c: \ windows \ system32 \ user32.dll
0x77430000-0x7747e000 c: \ windows \ system32 \ gdi32.dll
0x77390000-0x7739a000 c: \ windows \ system32 \ LPK. dll
0x770e0000-0x7717d000 c: \ windows \ system32 \ usp10.dll
0x768d0000-0x768ef000 c: \ windows \ system32 \ imm32.dll
0x77010000-0x770dc000 c: \ windows \ system32 \ msctf. dll
0x7c340000-0x7c0000000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ msvcr71.dll
0x6d8b0000-0x6db06000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ Client \ JVM. dll
0x73f20000-0x73f52000 c: \ windows \ system32 \ winmm. dll
0x752e0000-0x7532b000 c: \ windows \ system32 \ apphelp. dll
0x6d330000-0x6d338000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ HPI. dll
0x76860000-0x76865000 c: \ windows \ system32 \ psapi. dll
0x6d420000-0x6d449000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ jdwp. dll
0x6d750000-0x6d756000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ Ali. dll
0x6d860000-0x6d86c000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ verify. dll
0x6d3d0000-0x6d3ef000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ Java. dll
0x6d8a0000-0x6d8af000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ zip. dll
0x6d2a0000-0x6d2a7000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ dt_socket.dll
0x773a0000-0x773d5000 c: \ windows \ system32 \ ws2_32.dll
0x77410000-0x77416000 c: \ windows \ system32 \ NSI. dll
0x73cd0000-0x73ce0000 c: \ windows \ system32 \ nlaapi. dll
0x74e20000-0x74e5c000 c: \ windows \ system32 \ mswsock. dll
0x74ce0000-0x74d24000 c: \ windows \ system32 \ dnsapi. dll
0x70fe0000-0x70fe8000 c: \ windows \ system32 \ winrnr. dll
0x70fd0000-0x70fe0000 c: \ windows \ system32 \ napinsp. dll
0x709e0000-0x709f2000 c: \ windows \ system32 \ pnrpnsp. dll
0x74730000-0x7474c000 c: \ windows \ system32 \ iphlpapi. dll
0x746e0000-0x746e7000 c: \ windows \ system32 \ winnsi. dll
0x72c70000-0x72ca8000 c: \ windows \ system32 \ fwpuclnt. dll
0x70e50000-0x70e56000 c: \ windows \ system32 \ rasadhlp. dll
0x10000000-0x1003a000 E: \ Program Files \ Youku \ common \ ikutm. dll
0x75760000-0x758bc000 c: \ windows \ system32 \ ole32.dll
0x746f0000-0x74711000 c: \ windows \ system32 \ ntmarta. dll
0x76a30000-0x76a75000 c: \ windows \ system32 \ wldap32.dll
0x746a0000-0x746a5000 c: \ windows \ system32 \ wshtcpip. dll
0x6d610000-0x6d619000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ management. dll
0x0ca20000-0x0caf2000 E: \ apache-Tomcat-6.0.30 \ bin \ tcnative-1.dll
0x76c30000-0x76c87000 c: \ windows \ system32 \ shlwapi. dll
0x6d840000-0x6d848000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ sunmscapi. dll
0x75540000-0x7565c000 c: \ windows \ system32 \ crypt32.dll
0x75450000-0x7545c000 c: \ windows \ system32 \ MSASN1.DLL
0x6d6c0000-0x6d6d3000 c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin \ net. dll
0x74e10000-0x74e16000 c: \ windows \ system32 \ wship6.dll
0x74e60000-0x74e76000 c: \ windows \ system32 \ cryptsp. dll
0x74c00000-0x74c3b000 c: \ windows \ system32 \ rsaenh. dll
0x75330000-0x7533c000 c: \ windows \ system32 \ cryptbase. dll
0x74a40000-0x74a57000 c: \ windows \ system32 \ userenv. dll
0x753e0000-0x753eb000 c: \ windows \ system32 \ profapi. dll
VM arguments:
Jvm_args:-agentlib: jdwp = transport = dt_socket, suspend = Y, address = localhost: 58682-dcatalina. base = E: \ j2eeworkspace \. metadata \. plugins \ Org. eclipse. WST. server. core \ tmp0-dcatalina. home = E: \ apache-Tomcat-6.0.30-dwtp. deploy = E: \ j2eeworkspace \. metadata \. plugins \ Org. eclipse. WST. server. core \ tmp0 \ wtpwebapps
-Djava. endorsed. dirs = E: \ apache-Tomcat-6.0.30 \ endorsed-dfile. Encoding = GBK
Java_command: org. Apache. Catalina. startup. Bootstrap start
Launcher type: sun_standard
Environment variables:
Java_home = c: \ Program Files \ Java \ jdk1.6.0 _ 10
Classpath =.; C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ Lib; C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ Lib \ tools. Jar
Path = c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ JRE \ bin; C:/program files/Java/jdk1.6.0 _ 10/bin /.. /JRE/bin/client; C:/program files/Java/jdk1.6.0 _ 10/bin /.. /JRE/bin; E: \ apache-Tomcat-6.0.30 \ bin; C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin; C: \ olite \ deploy \ bin; c: \ olite \ bin; C: \ Program
Files \ Broadcom 802.11 Network Adapter \ driver; c: \ windows \ system32; C: \ WINDOWS; c: \ windows \ system32 \ WBEM; C: \ windows \ system32 \ windowspowershell \ V1.0 \; C: \ Program Files \ common files \ thunder Network \ Kankan \ codecs; C: \ olite \ deploy \ bin; E: \ Program Files \ mysql
Server 5.1 \ bin; E: \ Program Files \ rational \ common; E: \ Program Files \ tortoisesvn \ bin; C: \ Users \ who \ appdata \ Local \ Temp
Username = who
OS = windows_nt
Processor_identifier = x86 family 6 model 37 stepping 5, genuineintel
--------------- S y s t e m ---------------
OS: Windows NT 6.1 build 7600
CPU: total 4 (8 cores per CPU, 2 threads per core) family 6 model 5 stepping 5, cmov, cx8, fxsr, MMX, SSE, sse2, sse3, ssse3, HT
Memory: 4 K page, physical 1956544 K (162336 K free), swap 3913088 K (708756 K free)
Vm_info: Java hotspot (TM) Client VM (11.0-b15) for windows-x86 JRE (1.6.0 _ 10-rc2-b32), built on Sep 12 2008 00:52:11 by "java_re" with ms vc ++ 7.1
Time: Thu May 03 16:58:03 2012
Elapsed time: 209 seconds