Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6692

Fail to read analysis report when too many issues on file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2
    • Component/s: Compute Engine
    • Labels:
      None

      Description

      java.lang.IllegalStateException: Failed to read file: /....../sonarqube-5.1.1/temp/tmp/1435769358920-0/issues-352.pb
                  at org.sonar.batch.protocol.ProtobufUtil.readFile(ProtobufUtil.java:43) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReportReader.readComponentIssues(BatchReportReader.java:57) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.server.computation.step.ParseReportStep.recursivelyProcessComponent(ParseReportStep.java:55) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.step.ParseReportStep.recursivelyProcessComponent(ParseReportStep.java:58) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.step.ParseReportStep.recursivelyProcessComponent(ParseReportStep.java:58) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.step.ParseReportStep.execute(ParseReportStep.java:47) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.ComputationService.process(ComputationService.java:89) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.ComputationContainer.execute(ComputationContainer.java:47) ~[sonar-server-5.1.1.jar:na]
                  at org.sonar.server.computation.ComputationThread.run(ComputationThread.java:58) ~[sonar-server-5.1.1.jar:na]
                  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0]
                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0]
                  at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0]
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0]
                  at java.lang.Thread.run(Thread.java:780) [na:1.7.0]
      Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large.  May be malicious.  Use CodedInputStream.setSizeLimit() to increase the size limit.
                  at com.google.protobuf.InvalidProtocolBufferException.sizeLimitExceeded(InvalidProtocolBufferException.java:110) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.tryRefillBuffer(CodedInputStream.java:1131) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.refillBuffer(CodedInputStream.java:1081) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.readRawByte(CodedInputStream.java:1149) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.readRawVarint64SlowPath(CodedInputStream.java:778) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.readRawVarint32(CodedInputStream.java:637) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.CodedInputStream.readEnum(CodedInputStream.java:570) ~[protobuf-java-2.6.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issue.<init>(BatchReport.java:2727) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issue.<init>(BatchReport.java:2658) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issue$1.parsePartialFrom(BatchReport.java:2878) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issue$1.parsePartialFrom(BatchReport.java:2873) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495) ~[protobuf-java-2.6.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issues.<init>(BatchReport.java:5976) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issues.<init>(BatchReport.java:5918) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issues$1.parsePartialFrom(BatchReport.java:6017) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at org.sonar.batch.protocol.output.BatchReport$Issues$1.parsePartialFrom(BatchReport.java:6012) ~[sonar-batch-protocol-5.1.1.jar:na]
                  at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:192) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:209) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:215) ~[protobuf-java-2.6.1.jar:na]
                  at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49) ~[protobuf-java-2.6.1.jar:na]
                  at org.sonar.batch.protocol.ProtobufUtil.readFile(ProtobufUtil.java:41) ~[sonar-batch-protocol-5.1.1.jar:na]
                  ... 16 common frames omitted
       

      Moreover the exception is not clear enough. It doesn't display the name of the file.

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: