偶然发现的Bug
Bug ID: | 6476706 |
Votes | 63 |
Synopsis | Error AGENT_ERROR_NO_JNI_ENV printed sometimes to console when JVM finishes |
Category | java:debugger |
Reported Against | b99 |
Release Fixed | |
State | 3-Accepted, bug |
Priority: | 4-Low |
Related Bugs | |
Submit Date | 29-SEP-2006 |
Description |
The following error is printed to console when debugger is about to finish:
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [http://www.cnblogs.com/../src/share/back/util.c:820]
It was found by other people as well:
http://www.google.co.uk/search?hl=en&q=AGENT_ERROR_NO_JNI_ENV%28183%29++util.c%3A820&btnG=Google+Search&meta
I am able to reproduce it with xxxxx IDE (http://www.netbeans.org/issues/show_bug.cgi?id=85538):
- install xxxxx IDE 6.0
- create a java project
- add two lines to main method (System.out.println("aaa");System.out.println("bbb");)
- add customer to the first line
- start debugger (F5)
- continue when it stops at customer . The error message above is SOMETIMES
printed to output window.
Build NB 6.0 20060919-0644, JDK1.6.0-b99, WindowsXP.
Posted Date : 2006-09-29 11:59:37.0
An e-mail comment from Alan:
> It sounds like a timing issue in the shutdown with the agent still running.
Posted Date : 2007-03-13 16:11:28.0
|
这个bug在我第二次运行同样的程序的时候,消失了,无从追究,发现原来是eclipse和jdk1.6的版本冲突的问题,目前还没有解决。
跟我走啊~~