SonarLint v 2.2.1 vs SonarQube v 4.5.7

1,684 views
Skip to first unread message

ni.ro...@gmail.com

unread,
Sep 22, 2016, 5:42:27 AM9/22/16
to SonarLint
Hi,

Is SonarLint 2.2.1 still compatible with SonarQube v 4.5.7? 

The SonarQube endpoint "api/system/status" only exists since version 5.2 (https://sonarqube.com/web_api/api/system), and SonarLint fails connecting to the server if it can't reach this one.

Thanks,
Nicolas

Julien HENRY

unread,
Sep 22, 2016, 5:49:26 AM9/22/16
to ni.ro...@gmail.com, SonarLint
Hi Nicolas,

It used to work but we are no more testing it. There is a fallback on api/server/version when api/system/status returns a 404. Do you have a stacktrace?

++

Julien

ni.ro...@gmail.com

unread,
Sep 22, 2016, 5:56:49 AM9/22/16
to SonarLint, ni.ro...@gmail.com
Here is the stack trace:

Error 503 on http://********/api/system/status
java.lang.IllegalStateException: Error 503 on http://********/api/system/status
at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.handleError(SonarLintWsClient.java:121)
at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.fetchServerInfos(ServerVersionAndStatusChecker.java:101)
at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:60)
at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:50)
at org.sonarsource.sonarlint.core.WsHelperImpl.validateConnection(WsHelperImpl.java:48)
at org.sonarsource.sonarlint.core.WsHelperImpl.validateConnection(WsHelperImpl.java:43)
at org.sonarlint.eclipse.core.internal.server.Server.testConnection(Server.java:225)
at org.sonarlint.eclipse.ui.internal.server.wizard.ServerConnectionTestJob.run(ServerConnectionTestJob.java:44)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Julien HENRY

unread,
Sep 22, 2016, 11:02:39 AM9/22/16
to SonarLint, ni.ro...@gmail.com
I made some tests and it is working fine. I'm a bit surprised by this response code "503". Do you have some sort of proxy between SonarLint and your SonarQube server that would change the 404 to 503?

++

Julien
Reply all
Reply to author
Forward
0 new messages