Details

    • Similar Issues:
    • Released As:
      1.20.4

      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

          ennef Christopher Fenner created issue -
          Hide
          aleksisimell Aleksi Simell added a comment - - edited

          Christopher Fenner Which SonarQube version are you using? In version 1.20.2 I discontinued support for SonarQube < 7.4, and I apologize for the version number as it should not have been a patch release. I realized that only about 2 weeks ago when one of my colleagues brought this issue to me too.

          Show
          aleksisimell Aleksi Simell added a comment - - edited Christopher Fenner Which SonarQube version are you using? In version 1.20.2 I discontinued support for SonarQube < 7.4, and I apologize for the version number as it should not have been a patch release. I realized that only about 2 weeks ago when one of my colleagues brought this issue to me too.
          Hide
          ennef Christopher Fenner added a comment -

          Ok, we're still on Version 6.7.5 (build 38563)..

          Show
          ennef Christopher Fenner added a comment - Ok, we're still on Version 6.7.5 (build 38563)..
          Hide
          aleksisimell Aleksi Simell added a comment -

          I can try to re-add the support for lower SonarQube installations, once I find the appropriate time.

          Show
          aleksisimell Aleksi Simell added a comment - I can try to re-add the support for lower SonarQube installations, once I find the appropriate time.
          Hide
          ennef Christopher Fenner added a comment - - edited

          Thanks! That would be great if it's not that much effort!

          Show
          ennef Christopher Fenner added a comment - - edited Thanks! That would be great if it's not that much effort!
          Hide
          yashwinkumar Ashwin Yaprala added a comment -

          I have the same issue with both the versions v1.20.2 and v1.20.3. Let me know when we can get an update with the support.

          Do we have a version which already has the support?

          Show
          yashwinkumar Ashwin Yaprala added a comment - I have the same issue with both the versions v1.20.2 and v1.20.3. Let me know when we can get an update with the support. Do we have a version which already has the support?
          Hide
          aleksisimell Aleksi Simell added a comment -

          Ashwin Yaprala Any version before 1.20.2 as mentioned in the release notes of the wiki page.

          Show
          aleksisimell Aleksi Simell added a comment - Ashwin Yaprala Any version before 1.20.2 as mentioned in the release notes of the wiki page .
          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.
          aleksisimell Aleksi Simell made changes -
          Field Original Value New Value
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          Resolution Fixed [ 1 ]
          aleksisimell Aleksi Simell made changes -
          Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
          renescheibe René Scheibe made changes -
          Released As 1.20.3
          renescheibe René Scheibe made changes -
          Released As 1.20.3 1.20.4

            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: