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): [../../../src/share/back/util.c:820]
It was found by other people as well:
I am able to reproduce it with NetBeans IDE (http://www.netbeans.org/issues/show_bug.cgi?id=85538):
- install NetBeans IDE 6.0
- create a java project
- add two lines to main method (System.out.println("aaa");System.out.println("bbb");)
- add breakpoint to the first line
- start debugger (F5)
- continue when it stops at breakpoint. The error message above is SOMETIMES
printed to output window.
Build NB 6.0 20060919-0644, JDK1.6.0-b99, WindowsXP.
An e-mail comment from Alan:
> It sounds like a timing issue in the shutdown with the agent still running.