2014-01-12 41 views
1

我分析一個項目中使用聲納亞軍。下面是我的sonar-project.properties內容Eclipse是展示,而與聲納Eclipse插件分析

# Required metadata 
sonar.projectKey=sonar-runner 
sonar.projectName=xyz 
sonar.projectVersion=2.0.1 

# Comma-separated paths to directories with sources (required) 
sonar.sources=/home/xyz/abc 

# Language 
sonar.language=java 

# Encoding of the source files 
sonar.sourceEncoding=UTF-8 

現在我已經安裝了聲納Eclipse插件和相關的syh​​nchronization問題項目在日食中分析。然而,聲納eclipse插件顯示follwing錯誤

Error during issue query [email protected] 
Error during issue query [email protected] 

我究竟錯過了什麼?下面

UPDATE是日食

org.sonar.ide.eclipse.wsclient.SonarWSClientException: Error during issue query [email protected] 
    at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.findIssues(SonarWSClientFacade.java:194) 
    at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.getRemoteIssuesRecursively(SonarWSClientFacade.java:170) 
    at org.sonar.ide.eclipse.core.internal.remote.RemoteSourceCode.getRemoteIssuesRecursively(RemoteSourceCode.java:122) 
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.doRefreshIssues(SynchronizeAllIssuesJob.java:136) 
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.fetchRemoteIssues(SynchronizeAllIssuesJob.java:125) 
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.run(SynchronizeAllIssuesJob.java:79) 
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 
Caused by: org.sonar.wsclient.base.HttpException: Error 404 on http://10.13.212.2:9000/api/issues/search?pageSize=-1&componentRoots=:esewa-kernel&pageIndex=1 
    at org.sonar.wsclient.internal.HttpRequestFactory.execute(HttpRequestFactory.java:135) 
    at org.sonar.wsclient.internal.HttpRequestFactory.get(HttpRequestFactory.java:121) 
    at org.sonar.wsclient.issue.internal.DefaultIssueClient.find(DefaultIssueClient.java:48) 
    at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.findIssues(SonarWSClientFacade.java:190) 
    ... 6 more 
+0

什麼是您的SonarQube,SonarQube Eclipse插件,Eclipse版本? –

+0

我與SonarQube插件版本3.4.0.20140404-0949-RELEASE和聲納服務器版本3.5.1有相同的問題。有關於此的更多信息嗎? – Martin

回答

1

登錄我也有同樣的問題的錯誤。

SonarQube版本4.1.1 SonarQube的Java分析3.3.0

當我點擊分析按鈕,我得到了以下錯誤:

org.sonar.ide.eclipse.wsclient.SonarWSClientException: Error during issue query org.sonar.wsclien[email protected] 
at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.findIssues(SonarWSClientFacade.java:194) 
at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.getRemoteIssuesRecursively(SonarWSClientFacade.java:170) 
at org.sonar.ide.eclipse.core.internal.remote.RemoteSourceCode.getRemoteIssuesRecursively(RemoteSourceCode.java:122) 
at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.doRefreshIssues(SynchronizeAllIssuesJob.java:136) 
at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.fetchRemoteIssues(SynchronizeAllIssuesJob.java:125) 
at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.run(SynchronizeAllIssuesJob.java:79) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) 
Caused by: org.sonar.wsclient.base.HttpException: Error 500 on http://w8r2:9000/api/issues/search?pageSize=-1&componentRoots=KasBoxOnyuz&pageIndex=1 
at org.sonar.wsclient.internal.HttpRequestFactory.execute(HttpRequestFactory.java:135) 
at org.sonar.wsclient.internal.HttpRequestFactory.get(HttpRequestFactory.java:121) 
at org.sonar.wsclient.issue.internal.DefaultIssueClient.find(DefaultIssueClient.java:48) 
at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.findIssues(SonarWSClientFacade.java:190) 
... 6 more 

當我手動訪問的鏈接,我有以下:

<error><code>500</code><msg>cannot load Java class org.sonar.api.ıssue.RubyIssueService 
org/jruby/javasupport/JavaClass.java:1250:in `for_name' 
org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class' 
file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-complete-1.7.6.jar!/jruby/java/java_package_module_template.rb:4:in `const_missing' 
C:/sonarqube-4.1.1/web/WEB-INF/app/models/internal.rb:30:in `issues_api' 
C:/sonarqube-4.1.1/web/WEB-INF/app/models/api.rb:28:in `issues' 
C:/sonarqube-4.1.1/web/WEB-INF/app/controllers/api/issues_controller.rb:31:in `search' 
org/jruby/RubyKernel.java:2221:in `send' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1333:in `perform_action' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in `call_filters' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in `perform_action_with_filters' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms' 
jar:file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-complete-1.7.6.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in `perform_action_with_flash' 
org/jruby/RubyKernel.java:2221:in `send' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in `process' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in `process_with_filters' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in `process' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:438:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in `dispatch' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:85:in `dispatch' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in `_call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' 
org/jruby/RubyProc.java:290:in `call' 
org/jruby/RubyProc.java:224:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/head.rb:9:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call' 
file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/session/abstract/id.rb:58:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call' 
C:/sonarqube-4.1.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call' 
file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails' 
file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call' 
file:/C:/sonarqube-4.1.1/web/WEB-INF/lib/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call' 

而且,當我嘗試ŧ o來自SonarQube服務器的訪問問題,我得到如下:

We're sorry, but something went wrong. 
Please try back in a few minutes and contact support if the problem persists. 
Go back to the homepage 

我懷疑這是與SonarQube安裝有關。

請指教。