Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SonarLint Eclipse连接到SonarQube服务器时给出;没有用于服务器的存储';声纳';。请更新;_Eclipse_Sonarqube_Sonarlint_Sonarqube5.3_Sonarlint Eclipse - Fatal编程技术网

SonarLint Eclipse连接到SonarQube服务器时给出;没有用于服务器的存储';声纳';。请更新;

SonarLint Eclipse连接到SonarQube服务器时给出;没有用于服务器的存储';声纳';。请更新;,eclipse,sonarqube,sonarlint,sonarqube5.3,sonarlint-eclipse,Eclipse,Sonarqube,Sonarlint,Sonarqube5.3,Sonarlint Eclipse,我的公司升级到SonarQube 5.3。这需要将用于Eclipse的SonarQube插件更改为SonarLint。我对这次升级感到遗憾,因为我的项目质量概要文件包含494条规则,只有12条来自Squid,所以我们有一个庞大的项目来让Eclipse中的Sonarint变得有用。但我还是想在我的电脑上安装SonarLint 2.0.2。当我尝试测试与SQ服务器的连接时,SonarLint控制台中出现错误。有什么问题吗 No storage for server 'sonar'. Please u

我的公司升级到SonarQube 5.3。这需要将用于Eclipse的SonarQube插件更改为SonarLint。我对这次升级感到遗憾,因为我的项目质量概要文件包含494条规则,只有12条来自Squid,所以我们有一个庞大的项目来让Eclipse中的Sonarint变得有用。但我还是想在我的电脑上安装SonarLint 2.0.2。当我尝试测试与SQ服务器的连接时,SonarLint控制台中出现错误。有什么问题吗

No storage for server 'sonar'. Please update.
Fail to request https://sonar.forge.mycompany.com:9000/api/system/status
java.lang.IllegalStateException: Fail to request https://sonar.forge.mycompany.com:9000/api/system/status
    at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:202)
    at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:144)
    at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:133)
    at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.rawGet(SonarLintWsClient.java:98)
    at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.fetchServerInfos(ServerVersionAndStatusChecker.java:97)
    at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:61)
    at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:51)
    at org.sonarsource.sonarlint.core.WsHelperImpl.validateConnection(WsHelperImpl.java:50)
    at org.sonarsource.sonarlint.core.WsHelperImpl.validateConnection(WsHelperImpl.java:45)
    at org.sonarlint.eclipse.core.internal.server.Server.testConnection(Server.java:244)
    at org.sonarlint.eclipse.ui.internal.server.wizard.ServerConnectionTestJob.run(ServerConnectionTestJob.java:44)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
    at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
    at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
    at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
    at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
    at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
    at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
    at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
    at com.squareup.okhttp.Call.getResponse(Call.java:286)
    at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
    at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
    at com.squareup.okhttp.Call.execute(Call.java:80)
    at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:199)
    ... 11 more

你把注意力集中在错误的事情上了。“没有存储…”的消息不会阻止它工作,我一直用最新的sonar/sonar lint收到这个消息

请查看您的服务器配置。看起来协议不匹配

java.lang.IllegalStateException: Fail to request https://sonar.forge.mycompany.com:9000/api/system/status
.
.
.
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

端口
9000
是SonarQube的默认HTTP端口。Sonarint建议在配置新服务器连接时使用https://

所以,如果你改变

https://sonar.forge.mycompany.com:9000


你还可以把Sonarint和SonarQube连接起来。

听起来不错。当我回去使用声纳时,我会检查一下。现在我在Eclipse之外运行声纳。我们的大多数规则还不是乌贼,所以声纳棉几乎是无用的(
http://sonar.forge.mycompany.com:9000