[JIRA] (JENKINS-56038) NPE in SonarQubePointGenerator

5 views
Skip to first unread message

christopher.fenner@sap.com (JIRA)

unread,
Feb 7, 2019, 3:40:02 PM2/7/19
to jenkinsc...@googlegroups.com
Christopher Fenner created an issue
 
Jenkins / Bug JENKINS-56038
NPE in SonarQubePointGenerator
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-02-07 20:39
Priority: Major Major
Reporter: Christopher Fenner

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

aleksi.simell@eficode.com (JIRA)

unread,
Feb 8, 2019, 1:53:03 AM2/8/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

Christopher Fenner Which SonarQube version are you using?

aleksi.simell@eficode.com (JIRA)

unread,
Feb 8, 2019, 1:56:02 AM2/8/19
to jenkinsc...@googlegroups.com
Aleksi Simell edited a comment on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator
[~ennef] 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.

christopher.fenner@sap.com (JIRA)

unread,
Feb 8, 2019, 6:10:02 AM2/8/19
to jenkinsc...@googlegroups.com
Christopher Fenner commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

aleksi.simell@eficode.com (JIRA)

unread,
Feb 8, 2019, 6:14:01 AM2/8/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

christopher.fenner@sap.com (JIRA)

unread,
Feb 8, 2019, 6:19:03 AM2/8/19
to jenkinsc...@googlegroups.com
Christopher Fenner commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

Would be great if it's not that much effort!

christopher.fenner@sap.com (JIRA)

unread,
Feb 8, 2019, 6:19:04 AM2/8/19
to jenkinsc...@googlegroups.com
Christopher Fenner edited a comment on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator
Would Thanks! That would be great if it's not that much effort!

yashwinkumr@gmail.com (JIRA)

unread,
Feb 13, 2019, 2:03:02 AM2/13/19
to jenkinsc...@googlegroups.com
Ashwin Y commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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?

aleksi.simell@eficode.com (JIRA)

unread,
Feb 13, 2019, 2:07:02 AM2/13/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

yashwinkumr@gmail.com (JIRA)

unread,
Feb 13, 2019, 2:21:02 AM2/13/19
to jenkinsc...@googlegroups.com
Ashwin Y commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

christopher.fenner@sap.com (JIRA)

unread,
Feb 18, 2019, 2:07:02 PM2/18/19
to jenkinsc...@googlegroups.com
Christopher Fenner commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

yashwinkumr@gmail.com (JIRA)

unread,
Feb 19, 2019, 10:40:02 AM2/19/19
to jenkinsc...@googlegroups.com
Ashwin Yaprala commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

After downgraded the version to 1.20 it worked.

yashwinkumr@gmail.com (JIRA)

unread,
Feb 19, 2019, 10:40:03 AM2/19/19
to jenkinsc...@googlegroups.com
Ashwin Yaprala edited a comment on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator
After downgraded downgrading the version to 1.20 it worked.

aleksi.simell@eficode.com (JIRA)

unread,
Feb 20, 2019, 12:49:02 AM2/20/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator

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

aleksi.simell@eficode.com (JIRA)

unread,
Feb 20, 2019, 6:38:02 AM2/20/19
to jenkinsc...@googlegroups.com
Aleksi Simell updated Bug JENKINS-56038
 

Support for older SonarQube versions added again.

Change By: Aleksi Simell
Status: Open Fixed but Unreleased
Resolution: Fixed

aleksi.simell@eficode.com (JIRA)

unread,
Feb 20, 2019, 6:43:02 AM2/20/19
to jenkinsc...@googlegroups.com
Aleksi Simell edited a comment on Bug JENKINS-56038
 
Re: NPE in SonarQubePointGenerator
Support for older SonarQube versions added again. Release is also already made. I will update the status once it's available in update-center.

aleksi.simell@eficode.com (JIRA)

unread,
Feb 20, 2019, 12:20:02 PM2/20/19
to jenkinsc...@googlegroups.com
Change By: Aleksi Simell
Status: Fixed but Unreleased Closed

rene.scheibe@gmail.com (JIRA)

unread,
Aug 29, 2019, 2:30:03 AM8/29/19
to jenkinsc...@googlegroups.com
René Scheibe updated an issue
Change By: René Scheibe
Released As: 1.20.3

rene.scheibe@gmail.com (JIRA)

unread,
Aug 29, 2019, 2:37:01 AM8/29/19
to jenkinsc...@googlegroups.com
René Scheibe updated an issue
Change By: René Scheibe
Released As: 1.20. 3 4
Reply all
Reply to author
Forward
0 new messages