2014-01-12 39 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安装有关。

请指教。