SonarLint无法连接到远程服务器

时间:2017-09-18 08:16:48

标签: intellij-idea sonarlint sonarlint-intellij

我使用Intellij Idea,我想使用SonarLint来检测错误和质量问题。当我试图将SonarLint连接到我的公司Sonar服务器时,我收到了以下错误

Failed to connect to the server. Please check the configuration.

摘自日志文件:

INFO - ellij.tasks.ConnectionTestTask - Connection test failed 
java.lang.NullPointerException
    at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.keyStoreIsEmpty(ConfirmingTrustManager.java:450)
    at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.getAcceptedIssuers(ConfirmingTrustManager.java:429)
    at okhttp3.internal.tls.TrustRootIndex.get(TrustRootIndex.java:43)
    at okhttp3.internal.platform.Platform.buildCertificateChainCleaner(Platform.java:167)
    at okhttp3.internal.tls.CertificateChainCleaner.get(CertificateChainCleaner.java:41)
    at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.java:695)
    at org.sonarsource.sonarlint.core.util.ws.OkHttpClientBuilder.build(OkHttpClientBuilder.java:183)
    at org.sonarsource.sonarlint.core.util.ws.HttpConnector.<init>(HttpConnector.java:85)
    at org.sonarsource.sonarlint.core.util.ws.HttpConnector.<init>(HttpConnector.java:50)
    at org.sonarsource.sonarlint.core.util.ws.HttpConnector$Builder.build(HttpConnector.java:293)
    at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.buildClient(SonarLintWsClient.java:73)
    at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.<init>(SonarLintWsClient.java:60)
    at org.sonarsource.sonarlint.core.WsHelperImpl.createClient(WsHelperImpl.java:81)
    at org.sonarsource.sonarlint.core.WsHelperImpl.validateConnection(WsHelperImpl.java:53)
    at org.sonarlint.intellij.tasks.ConnectionTestTask.run(ConnectionTestTask.java:52)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)
    at com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)
    at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
    at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:572)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)  

我该如何解决这个问题?

0 个答案:

没有答案