Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62781

Sonar Gerrit plugin aborted after load sonar report.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • sonar-gerrit-plugin
    • None
    • Jenkins ver. 2.190.1
      Sonar Gerrit Plugin: 2.4.3
      Gerrit: 2.14.20

      Recently we met this issue several times that Sonar Gerrit Plugin failed to post report on Gerrit.

      Here are the logs from Jenkins job & SonarToGerrit Logger:

      Getting Sonar Report from: /****/target/sonar/sonar-report.json

      Report has loaded and contains 28 issues

       
      Jun 23, 2020 1:20:54 PM SEVERE org.jenkinsci.plugins.sonargerrit.SonarToGerritPublisher perform

      Unable to post review: Request failed. java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at com.urswolfer.gerrit.client.rest.http.HttpRequestExecutor.execute(HttpRequestExecutor.java:34) at com.urswolfer.gerrit.client.rest.http.GerritRestClient.request(GerritRestClient.java:219) at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestRest(GerritRestClient.java:163) at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestRest(GerritRestClient.java:155) at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestJson(GerritRestClient.java:132)

      Caused: com.google.gerrit.extensions.restapi.RestApiException: Request failed. at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestJson(GerritRestClient.java:147) at com.urswolfer.gerrit.client.rest.http.GerritRestClient.getRequest(GerritRestClient.java:101) at com.urswolfer.gerrit.client.rest.http.changes.FileApiRestClient.diff(FileApiRestClient.java:115) at com.urswolfer.gerrit.client.rest.http.changes.FileApiRestClient.access$200(FileApiRestClient.java:39) at com.urswolfer.gerrit.client.rest.http.changes.FileApiRestClient$2.get(FileApiRestClient.java:89) at com.urswolfer.gerrit.client.rest.http.changes.FileApiRestClient.diff(FileApiRestClient.java:76) at org.jenkinsci.plugins.sonargerrit.review.GerritRevisionWrapper.getChangedLinesByFile(GerritRevisionWrapper.java:75) at org.jenkinsci.plugins.sonargerrit.review.GerritRevisionWrapper.calculateFile2ChangedLines(GerritRevisionWrapper.java:68) at org.jenkinsci.plugins.sonargerrit.review.GerritRevisionWrapper.loadData(GerritRevisionWrapper.java:39) at org.jenkinsci.plugins.sonargerrit.SonarToGerritPublisher.perform(SonarToGerritPublisher.java:118) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

            aquarellian Tatiana Didik
            gracesheep Yao Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: