声纳Qube执行失败,"Error during SonarQube Scanner execution"



我有声纳与TFS集成。很长一段时间都运行良好。开始失败,并出现有关声纳扫描仪和Java的错误。我没有升级任何东西或没有改变任何东西。 我在 TFS 构建过程中遇到的错误,

错误:SonarQube 扫描程序执行期间出错 java.lang.IllegalStateException: 无法加载组件类 org.sonar.batch.report.ActiveRulesPublisher at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621) at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334) at org.picocontainer.parameters.CollectionComponentParameter.access$100(CollectionComponentParameter.java:49) at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance(CollectionComponentParameter.java:139) 原因:java.lang.NullPointerException 错误:使用 -X 开关重新运行 SonarQube 扫描程序以启用完整的调试日志记录。 声纳Qube扫描仪未成功完成

有人可以请教吗?

通过升级 SonarQube 中安装的所有插件来修复它。感谢您的评论

您需要启用更详细的日志记录,以尝试了解失败的确切原因。请按照以下步骤操作。

  • 通过添加名为system.debug并将其值设置为"true">
  • 启用 SonarQube 组件详细日志记录 - 在您的 SonarQube 中 开始任务,在"高级>附加设置"下,请添加:/d:sonar.verbose=true

只需遵循错误消息中的建议即可。Re-run SonarQube Scanner using the -X switch to enable full debug logging.您还可以查看SonarQube实例的声纳.log。可能会在那里获得错误的更多详细信息。

最新更新