Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plugins Artifactory-类型与afterDownloadError()不匹配错误_Plugins_Artifactory - Fatal编程技术网

Plugins Artifactory-类型与afterDownloadError()不匹配错误

Plugins Artifactory-类型与afterDownloadError()不匹配错误,plugins,artifactory,Plugins,Artifactory,我正在编写一个插件,利用这里描述的AfterDownloadErrorHook: 但是,当我试图下载一个文件时,这段代码出现以下错误。 我的代码: 错误: Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifac

我正在编写一个插件,利用这里描述的AfterDownloadErrorHook:

但是,当我试图下载一个文件时,这段代码出现以下错误。 我的代码:

错误:

Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifactory.webapp.servlet.HttpArtifactoryRequest)"

我使用的是ArtifactoryPro 5.1.4。我还尝试导入并将httpartifactryRequest传递给afterDownloadError闭包,但这也不起作用。这里似乎有一个bug或文档问题,或者两者都有。

好的,我会回答我自己的帖子-我的脚本在afterDownloadError闭包中抛出了一个异常,但在我意识到发生了什么之前,错误消息有点混乱

Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifactory.webapp.servlet.HttpArtifactoryRequest)"