2017-05-12 184 views
0

我已将声纳与TFS集成。很长一段时间以来运行良好。开始失败,声纳扫描仪和Java错误。我没有升级任何东西或没有改变任何东西。 错误TFS期间我得到建立,sonarQube执行失败,“SonarQube扫描仪执行期间出错”

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

有人能请指教吗?

+0

您正在使用哪种类型的TFS构建? vNext或Msbuild –

+0

@ Patrick-MSFT - vNext构建 – Meet101

回答

1

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

0

您需要启用更详细的日志记录才能了解到底发生了什么故障。按照下面的步骤。

  • 启用TFS通过添加一个名为 system.debug变量,并将其值设置为“真”
  • 启用SonarQube组件的详细日志记录生成的调试日志记录 - 在你SonarQube 开始任务,高级>其他设置,下请加: /d:sonar.verbose=true

而只是按照错误消息中的建议。 Re-run SonarQube Scanner using the -X switch to enable full debug logging.您也可以在SonarQube实例的sonar.log中查看。可以在那里获得更多的错误细节。

相关问题