Debugging JNI exception failures
I keep on getting the much hated:
FATAL ERROR in native method: JNI call made with exception pending
error... Is there a way to get the JVM to output even more debugging information such that every single time a JNI exception is thrown, it outputs a message to the screen (kinda like -verbose)? I'd expect some sort of flag to enable this at JVM startup.
It really is extremely difficult to debug these errors otherwise because the JRE is full of JNI calls that don't check for success or failure. Maybe this was done intentionally for performance reasons but it makes it very difficult to work with.