NPE when analyzing a project in Eclipse (SonarQube 5.2)

I upgraded from SonarQube 5.1.2 to 5.2.

In Eclipse, I start the analysis with SonarQube with the latest version of the plugin. But a dialogue appears saying that there is NPE. The Eclipse error log displays:

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:55) 

What is the problem? How can I do an analysis of Eclipse using SonarQube 5.2?

+6
source share
1 answer

You cannot use the Eclipse SonarQube plugin with SonarQube 5.2 or later.


From the SonarQube Wiki :

SonarQube Eclipse Plugin Deprecated

SonarQube Eclipse plugin does not work with SonarQube 5.2+. It is being replaced by SonarLint for Eclipse .

Please note that the SonarLint series for Eclipse 1.x does not cover all the features of the SonarQube Eclipse plugin, but version 2.x definitely covers this gap.

+9
source

All Articles