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

NPE in CE when trying to send notification

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 8.3
    • Component/s: Compute Engine
    • Labels:
    • Edition:
      Community
    • Production Notes:
      None

      Description

      NPE has occurred in CE when trying to send notification.

      Logs:

      2020.04.08 11:59:28 ERROR ce[AXFZOHNlISOy22w3fk53][o.s.c.t.CeWorkerImpl] Failed to execute task AXFZOHNlISOy22w3fk53
      java.lang.NullPointerException: null
      	at org.sonar.server.issue.notification.IssuesChangesNotificationBuilder$Rule.equals(IssuesChangesNotificationBuilder.java:272)
      	at java.base/java.util.HashMap.putVal(HashMap.java:630)
      	at java.base/java.util.HashMap.put(HashMap.java:607)
      	at java.base/java.util.HashSet.add(HashSet.java:220)
      	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
      	at org.sonar.server.issue.notification.IssuesChangesNotificationSerializer.serializeRules(IssuesChangesNotificationSerializer.java:164)
      	at org.sonar.server.issue.notification.IssuesChangesNotificationSerializer.serialize(IssuesChangesNotificationSerializer.java:55)
      	at org.sonar.ce.task.projectanalysis.notification.NotificationFactory.newIssuesChangesNotification(NotificationFactory.java:99)
      	at org.sonar.ce.task.projectanalysis.step.SendIssueNotificationsStep.sendIssuesChangesNotification(SendIssueNotificationsStep.java:164)
      	at org.sonar.ce.task.projectanalysis.step.SendIssueNotificationsStep.processIssues(SendIssueNotificationsStep.java:159)
      	at org.sonar.ce.task.projectanalysis.step.SendIssueNotificationsStep.doExecute(SendIssueNotificationsStep.java:120)
      	at org.sonar.ce.task.projectanalysis.step.SendIssueNotificationsStep.execute(SendIssueNotificationsStep.java:103)
      

        Attachments

          Activity

            People

            Assignee:
            jacek.poreda Jacek Poreda
            Reporter:
            jacek.poreda Jacek Poreda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: