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

NPE in SonarQubePointGenerator

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We receive NPEs originating from the SonarQubePointGenerator lately:

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:186)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:77)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:65)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      and

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:187)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:78)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:66)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      Looks like the issue is coming from this line: https://github.com/jenkinsci/influxdb-plugin/blob/3af3be64df162c190374759e7947471432e7a8b5/src/main/java/jenkinsci/plugins/influxdb/generators/SonarQubePointGenerator.java#L186

       

      Error is occurring with v1.20.2 and v1.20.3.

       

        Attachments

          Activity

          Hide
          yashwinkumar Ashwin Yaprala added a comment -

          I will check with 1.20.1 and 1.20 versions. I will let you know if that fixed my issue. Thank you Aleksi Simell

          Show
          yashwinkumar Ashwin Yaprala added a comment - I will check with 1.20.1 and 1.20 versions. I will let you know if that fixed my issue. Thank you Aleksi Simell . 
          Hide
          ennef Christopher Fenner added a comment -

          I would vote for keeping the support for SonarQube LTS which is currently 6.7.x.

          Show
          ennef Christopher Fenner added a comment - I would vote for keeping the support for SonarQube LTS which is currently 6.7.x.
          Hide
          yashwinkumar Ashwin Yaprala added a comment - - edited

          After downgrading the version to 1.20 it worked.

          Show
          yashwinkumar Ashwin Yaprala added a comment - - edited After downgrading the version to 1.20 it worked.
          Hide
          aleksisimell Aleksi Simell added a comment -

          Christopher Fenner Yes, I'm re-adding that. Already fixed this issue, but still need to test with a lower level SonarQube.

          Show
          aleksisimell Aleksi Simell added a comment - Christopher Fenner Yes, I'm re-adding that. Already fixed this issue, but still need to test with a lower level SonarQube.
          Hide
          aleksisimell Aleksi Simell added a comment - - edited

          Support for older SonarQube versions added again. Release is also already made. I will update the status once it's available in update-center.

          Show
          aleksisimell Aleksi Simell added a comment - - edited Support for older SonarQube versions added again. Release is also already made. I will update the status once it's available in update-center.

            People

            • Assignee:
              aleksisimell Aleksi Simell
              Reporter:
              ennef Christopher Fenner
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: