You would think that gcc would havecaught my stupid error (passing the class object to CallVoidMethodrather than the jobject).