Reports errors in calls to JNI
NewObject
function.