2017-01-31 54 views
0

我使用Sonarqube 6.2的版本4.4.0.8066聲納Java插件並獲得與JDK 1.8編譯項目這個錯誤:Sonarqube 6.2錯誤 - 無法完成符號執行:16000達到極限步驟

[DEBUG] 22:09:01.566 Could not complete symbolic execution: 
22:09:01 org.sonar.java.se.ExplodedGraphWalker$MaximumStepsReachedException: reached limit of 16000 steps for method setData#198 in class PaymentVarianceReportFilterCriteria 
22:09:01 at org.sonar.java.se.ExplodedGraphWalker.throwMaxSteps(ExplodedGraphWalker.java:260) 
22:09:01 at org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:211) 
22:09:01 at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:186) 
22:09:01 at org.sonar.java.se.SymbolicExecutionVisitor.execute(SymbolicExecutionVisitor.java:68) 
22:09:01 at org.sonar.java.se.SymbolicExecutionVisitor.visitNode(SymbolicExecutionVisitor.java:57) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:95) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.scanTree(SubscriptionVisitor.java:78) 
22:09:01 at org.sonar.java.ast.visitors.SubscriptionVisitor.scanFile(SubscriptionVisitor.java 

................. 
........................ 

.................... 
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project ct: Error 500 on http://stssonar01/api/ce/submit?projectKey=com.edifecs:ct&projectName=Edifecs%20Collaborative%20Testing%20Build : {"errors":[{"msg":"An error has occurred. Please contact your administrator."}]} -> [Help 1] 
22:50:07 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project ct: Error 500 on http://stssonar01/api/ce/submit?projectKey=com.edifecs:ct&projectName=Edifecs%20Collaborative%20Testing%20Build : {"errors":[{"msg":"An error has occurred. Please contact your administrator."}]} 
22:50:07 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 
22:50:07 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 

我是否在運行聲納時丟失了一些東西:maven構建過程的聲納步驟clean install sonar:sonar

請幫我解決這個問題。在此先感謝..

+0

問題的標題和錯誤日誌的第一部分實際上與您遇到的失敗maven目標的錯誤500的失敗無關。看到這個更多的解釋:http://stackoverflow.com/questions/34065727/error-could-not-complete-symbolic-execution-reached-limit-of-10000-steps/34067784#34067784 – benzonico

+0

因爲你有一個錯誤500在服務器上,您可能需要查看服務器的日誌以瞭解發生了什麼。 – benzonico

回答

0

這與引入符號執行的負面測試有關。

對於兩個規則(關於空指針異常的S2259和關於條件的S2583總是爲真或假),執行該測試。

從本質上講,該方法有一個點,爲過去的6000

您可以禁用兩個規則,或重構法空/總是真或假迭代不具有的一切可能性的總數,很多if/case邏輯。

這應該是無創性與問候(https://jira.sonarsource.com/browse/SONARJAVA-1406),只有在調試模式下渲染,但我可以證實它仍然暫停與Maven插件讀取。

相關問題