I am a little stuck with this one... ReferenceTable overflow (max=512), I am sure it has to do with the Number of Local References getting created in my native method call..
You need to delete local reference from oneDim object: env->DeleteLocalRef(oneDim);.
oneDim
env->DeleteLocalRef(oneDim);