improve error report at JavaEngine#InvokeMethod