title: JNI error : Local reference table overflow 512 entries
body: <p>My function looks like below. And it is getting executed for a number of times.At certain point it is crashing at jobject nvarObject = env->GetObjectField (var1, nvar1) giving error JNI error : Local reference table overflow 512 entries.</p>
  
  <p>Could anyone look into this issue and throw some light.</p>