2017-05-12 1984 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中查看。可以在那裏獲得更多的錯誤細節。

相關問題