[DEBUG] JNI error corection of multiple threading interface