I get this error after debugging in Eclipse. The debug is successful though.
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
It's apparently a JVM bug. It's harmless and unpredictable.