fix the bug of JNI crash down: GetObjectClass ReferenceTable overflow (max=1024)