JNI fix on Exception message