Use ScopedJavaLocalRef and ConvertUTF8ToJavaString is better here, I will change it, thanks.