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

SonarCloud - NPE - org.sonarqube.ws.Measures SearchHistoryResponse

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: Measures
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Surge of NPE on SonarCloud on January 24

      Fail to process request http://sonarcloud.io/api/measures/search_history?metrics=development_cost&component=blackduck-artifactory:blackduck-artifactory-common:src/main/java/com/synopsys/integration/blackduck/artifactory/modules/policy/PolicyModule.java
      java.lang.NullPointerException: null
      at org.sonarqube.ws.Measures$SearchHistoryResponse$HistoryValue$Builder.setValue(Measures.java:5055)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.addValue(SearchHistoryResponseFactory.java:111)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.lambda$null$6(SearchHistoryResponseFactory.java:92)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.Iterator.forEachRemaining(Iterator.java:116)
      at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.lambda$addValues$8(SearchHistoryResponseFactory.java:93)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.lambda$null$2(SearchHistoryResponseFactory.java:73)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.lambda$addMeasures$4(SearchHistoryResponseFactory.java:74)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      at org.sonar.server.measure.ws.SearchHistoryResponseFactory.apply(SearchHistoryResponseFactory.java:56)
      at org.sonar.server.measure.ws.SearchHistoryAction.lambda$handle$0(SearchHistoryAction.java:133)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      at org.sonar.server.measure.ws.SearchHistoryAction.handle(SearchHistoryAction.java:134)
      

        Attachments

          Activity

            People

            • Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              alexandre.odoux Alexandre Odoux
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: