Sonarqube synchronization error

你说的曾经没有我的故事 提交于 2019-12-11 13:55:22

问题


I have created a custom rule for sonarqube in Java. The rule is created and i can see that in the sonarqube UI.

Now the problem is when i try to check that rule from eclipse. I am getting error: :Synchronization issue, has encountered some problem".

When I checked log from eclipse, i have this:

!ENTRY org.sonar.ide.eclipse.core 4 4 2016-04-18 10:02:36.641
!MESSAGE 
!STACK 0
java.lang.NullPointerException
    at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.getUnresolvedRemoteIssuesRecursively(SonarWSClientFacade.java:170)
    at org.sonar.ide.eclipse.core.internal.remote.RemoteSourceCode.getRemoteIssuesRecursively(RemoteSourceCode.java:107)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.doRefreshIssues(SynchronizeAllIssuesJob.java:131)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.fetchRemoteIssues(SynchronizeAllIssuesJob.java:120)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.run(SynchronizeAllIssuesJob.java:76)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I would appreciate any help. Also I would like to know if there is a way to suppress my custom rule for some of the java file. I have seen the options like //nosonar and @supress(). Please let me know the way to suppress my custom rule for some java files.


回答1:


It Seems that this is a version issue. sonarqube eclipse plugin does not work with sonarqube 5.4 server. If you are using sonarqube 5.2+ server. you have to use sonarlint eclipse plugin for the analysis.



来源:https://stackoverflow.com/questions/36685596/sonarqube-synchronization-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!