无法将插件上传到 Fortify
Unable to Upload a Plugin into Fortify
当我尝试上传示例解析器插件时,出现错误“Error loading/validating 来自 jar 的插件元数据”。下面是它的图片。
以下几行来自日志文件。
2019-03-05 02:25:19,719 | INFO | 95-6077bc1af140] | ExchangeProcessorRequest | 9 - com.fortify.plugin.camel - 1.3.1071 | Plugin com.fortify.plugin.runtime.manager received message com.fortify.plugin.messaging.manager.PluginInstallRequest@45feadce; session null
2019-03-05 02:25:19,723 | INFO | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | INSTALLING plugin from remote URL [file:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/SSC-ssc/576e452a660d48659b21388ef203262b.jar]
2019-03-05 02:25:19,751 | INFO | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | Location for bundle to be installed: [ffinstall:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/576e452a660d48659b21388ef203262b.jar_23660754815308672.jar]
2019-03-05 02:25:19,755 | WARN | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | Plugin installation FAILED.
2019-03-05 02:25:19,755 | ERROR | pool-20-thread-1 | PluginManagerMessageHandler | 9 - com.fortify.plugin.camel - 1.3.1071 | Failed to install plugin from URL=file:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/SSC-ssc/576e452a660d48659b21388ef203262b.jar
com.fortify.plugin.runtime.metadata.PluginMetadataException: Error loading/validating plugin metadata from jar
at com.fortify.plugin.runtime.metadata.internal.PluginMetadataLoaderImpl.loadPluginJarMetadata(PluginMetadataLoaderImpl.java:46)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler.doTransform(AbstractPluginUrlHandler.java:109)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler.access[=10=]0(AbstractPluginUrlHandler.java:40)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler$Connection.getInputStream(AbstractPluginUrlHandler.java:85)
at java.net.URL.openStream(URL.java:1045)[:1.8.0_181]
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installPluginJar(PluginManagerImpl.java:266)
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installRemotePluginJar(PluginManagerImpl.java:246)
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installPlugin(PluginManagerImpl.java:116)
at com.fortify.plugin.camel.manager.PluginManagerMessageHandler.handleInOutRequest(PluginManagerMessageHandler.java:49)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.manager.PluginManagerMessageHandler.handleInOutRequest(PluginManagerMessageHandler.java:39)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.helpers.ExchangeProcessorRequest.handle(ExchangeProcessorRequest.java:37)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.helpers.ExchangeProcessor$AsyncTask.run(ExchangeProcessor.java:123)[9:com.fortify.plugin.camel:1.3.1071]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_181]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_181]
我已将元数据信息(.xml 文件)复制到与 .JAR 文件相同的目录中。
有人可以告诉我,如果我在这里遗漏了什么?或者我必须以不同的方式来做??
下面是示例解析器的 link。
已解决
我使用了错误的 .java 文件来转换为 .JAR 文件。
当我使用正确的 .java 文件和 .xml 文件时,我获得了成功。
当我尝试上传示例解析器插件时,出现错误“Error loading/validating 来自 jar 的插件元数据”。下面是它的图片。
以下几行来自日志文件。
2019-03-05 02:25:19,719 | INFO | 95-6077bc1af140] | ExchangeProcessorRequest | 9 - com.fortify.plugin.camel - 1.3.1071 | Plugin com.fortify.plugin.runtime.manager received message com.fortify.plugin.messaging.manager.PluginInstallRequest@45feadce; session null
2019-03-05 02:25:19,723 | INFO | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | INSTALLING plugin from remote URL [file:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/SSC-ssc/576e452a660d48659b21388ef203262b.jar]
2019-03-05 02:25:19,751 | INFO | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | Location for bundle to be installed: [ffinstall:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/576e452a660d48659b21388ef203262b.jar_23660754815308672.jar]
2019-03-05 02:25:19,755 | WARN | pool-20-thread-1 | PluginManagerImpl | 19 - com.fortify.plugin.runtime - 1.3.1071 | Plugin installation FAILED.
2019-03-05 02:25:19,755 | ERROR | pool-20-thread-1 | PluginManagerMessageHandler | 9 - com.fortify.plugin.camel - 1.3.1071 | Failed to install plugin from URL=file:/C:/Users/Administrator/Documents/Fortify_SSC_Server_18.10/apache-tomcat-8.5.28/temp/SSC-ssc/576e452a660d48659b21388ef203262b.jar
com.fortify.plugin.runtime.metadata.PluginMetadataException: Error loading/validating plugin metadata from jar
at com.fortify.plugin.runtime.metadata.internal.PluginMetadataLoaderImpl.loadPluginJarMetadata(PluginMetadataLoaderImpl.java:46)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler.doTransform(AbstractPluginUrlHandler.java:109)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler.access[=10=]0(AbstractPluginUrlHandler.java:40)
at com.fortify.plugin.runtime.transformer.AbstractPluginUrlHandler$Connection.getInputStream(AbstractPluginUrlHandler.java:85)
at java.net.URL.openStream(URL.java:1045)[:1.8.0_181]
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installPluginJar(PluginManagerImpl.java:266)
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installRemotePluginJar(PluginManagerImpl.java:246)
at com.fortify.plugin.runtime.manager.internal.PluginManagerImpl.installPlugin(PluginManagerImpl.java:116)
at com.fortify.plugin.camel.manager.PluginManagerMessageHandler.handleInOutRequest(PluginManagerMessageHandler.java:49)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.manager.PluginManagerMessageHandler.handleInOutRequest(PluginManagerMessageHandler.java:39)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.helpers.ExchangeProcessorRequest.handle(ExchangeProcessorRequest.java:37)[9:com.fortify.plugin.camel:1.3.1071]
at com.fortify.plugin.camel.helpers.ExchangeProcessor$AsyncTask.run(ExchangeProcessor.java:123)[9:com.fortify.plugin.camel:1.3.1071]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_181]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_181]
我已将元数据信息(.xml 文件)复制到与 .JAR 文件相同的目录中。
有人可以告诉我,如果我在这里遗漏了什么?或者我必须以不同的方式来做??
下面是示例解析器的 link。
已解决
我使用了错误的 .java 文件来转换为 .JAR 文件。
当我使用正确的 .java 文件和 .xml 文件时,我获得了成功。