I can not get these two disadvantages of using JNI. I want to know more about them:
Difficult to debug runtime error in native code
Errors in JNI code take down the entire JVM and don't provide any mechanism for graceful recovery