jvpp: use (*env)->ExceptionClear before calling (*env)->ExceptionOccurred