当我尝试上传样本解析器插件时,出现错误“ 从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$000(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文件所在的目录中。
如果我在这里想念什么,有人可以告诉我吗?还是我必须以其他方式来做?
下面是示例解析器的链接。
答案 0 :(得分:0)
解决了。
我使用错误的.java文件转换为.JAR文件。
使用正确的.java文件和.xml文件时,我获得了成功。