[JIRA] (JENKINS-59178) Nullpointer exception in IssuesAggregator.updateMap

36 views
Skip to first unread message

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 5:51:02 AM9/2/19
to jenkinsc...@googlegroups.com
Kent Granström created an issue
 
Jenkins / Bug JENKINS-59178
Nullpointer exception in IssuesAggregator.updateMap
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-09-02 09:50
Environment: Windows server 2016, Jenkins 2.189
Priority: Major Major
Reporter: Kent Granström

Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log:
00:08:21.581 FATAL: null*00:08:21.583* java.lang.NullPointerException*00:08:21.583* at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.updateMap(IssuesAggregator.java:87)00:08:21.583 at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.endRun(IssuesAggregator.java:64)00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:222)00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:165)00:08:21.583 at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375)00:08:21.583 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)00:08:21.583 at hudson.model.Run.execute(Run.java:1815)00:08:21.583 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)00:08:21.583 at hudson.model.ResourceController.execute(ResourceController.java:97)00:08:21.583 at hudson.model.Executor.run(Executor.java:429)

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

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 5:55:03 AM9/2/19
to jenkinsc...@googlegroups.com
Kent Granström updated an issue
Change By: Kent Granström
Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log: {noformat}
* 00:08:21.581 * FATAL: null *
00:08:21.583 * java.lang.NullPointerException*00:08:21.583*  at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.updateMap(IssuesAggregator.java:87) *
00:08:21.583 *   at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.endRun(IssuesAggregator.java:64) *
00:08:21.583 *   at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:222) *
00:08:21.583 *   at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:165) *
00:08:21.583 *   at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375) *
00:08:21.583 *   at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) *
00:08:21.583 *   at hudson.model.Run.execute(Run.java:1815) *
00:08:21.583 *   at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323) *
00:08:21.583 *   at hudson.model.ResourceController.execute(ResourceController.java:97) *
00:08:21.583 *   at hudson.model.Executor.run(Executor.java:429)
Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log:{noformat}

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 5:55:03 AM9/2/19
to jenkinsc...@googlegroups.com
Kent Granström updated an issue
Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log:

 
{noformat}
00:08:21.581 FATAL: null
00:08:21.583 java.lang.NullPointerException*00:08:21.583* at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.updateMap(IssuesAggregator.java:87)
00:08:21.583 at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.endRun(IssuesAggregator.java:64)
00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:222)
00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:165)
00:08:21.583 at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375)
00:08:21.583 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
00:08:21.583 at hudson.model.Run.execute(Run.java:1815)
00:08:21.583 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
00:08:21.583 at hudson.model.ResourceController.execute(ResourceController.java:97)
00:08:21.583 at hudson.model.Executor.run(Executor.java:429)
Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log: {noformat}

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 5:56:02 AM9/2/19
to jenkinsc...@googlegroups.com
Kent Granström updated an issue
Running a multi-config job and "flexible publish" and in that matching strings for configuration resulting in that one of those executes MSTest. The resulting file(s) is then parsed by the "Record compiler warnings and static analysis" -plugin". Both individual configurations results in "success" but the main part always results in FAILURE with the following in the log:

 
{noformat}
00:08:21.581 FATAL: null
00:08:21.583 java.lang.NullPointerException *
00:08:21.583 * at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.updateMap(IssuesAggregator.java:87)

00:08:21.583 at io.jenkins.plugins.analysis.core.steps.IssuesAggregator.endRun(IssuesAggregator.java:64)
00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:222)
00:08:21.583 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:165)
00:08:21.583 at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375)
00:08:21.583 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
00:08:21.583 at hudson.model.Run.execute(Run.java:1815)
00:08:21.583 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
00:08:21.583 at hudson.model.ResourceController.execute(ResourceController.java:97)
00:08:21.583 at hudson.model.Executor.run(Executor.java:429)
{noformat}

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 2, 2019, 2:46:02 PM9/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-59178
 
Re: Nullpointer exception in IssuesAggregator.updateMap

Can you please also provide a snippet of the corresponding steps in your Jenkinsfile?

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 2, 2019, 2:49:01 PM9/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-59178
Can you please also provide a snippet of the corresponding steps in your Jenkinsfile? Or are you using different tool IDs (for the warnings parsers) for the different nodes?

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 3:53:01 PM9/2/19
to jenkinsc...@googlegroups.com

We are only running the warnings plugin on one of the configurations, debug/release.

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 2, 2019, 5:33:02 PM9/2/19
to jenkinsc...@googlegroups.com

So you job is configured using the UI and not a Jenkinsfile?

kent.granstrom@comhem.se (JIRA)

unread,
Sep 2, 2019, 11:15:02 PM9/2/19
to jenkinsc...@googlegroups.com

Yes. It is a traditional jenkins multi-config job.

kent.granstrom@comhem.se (JIRA)

unread,
Sep 3, 2019, 7:19:03 AM9/3/19
to jenkinsc...@googlegroups.com

Does anyone know if there is a workaround for this?

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 3, 2019, 2:55:02 PM9/3/19
to jenkinsc...@googlegroups.com

Since I can't reproduce this bug yet I just can guess: you can try to enable the warnings plugin for all configurations.

kent.granstrom@comhem.se (JIRA)

unread,
Sep 3, 2019, 3:05:02 PM9/3/19
to jenkinsc...@googlegroups.com

kent.granstrom@comhem.se (JIRA)

unread,
Sep 4, 2019, 7:01:02 AM9/4/19
to jenkinsc...@googlegroups.com

Ulli Hafner : Have to get back to you on this one since we have serious crumb-problems with the latest version (2.193) of Jenkins itself.  

kent.granstrom@comhem.se (JIRA)

unread,
Sep 5, 2019, 2:30:02 AM9/5/19
to jenkinsc...@googlegroups.com
Kent Granström assigned an issue to Kent Granström
Change By: Kent Granström
Assignee: Ulli Hafner Kent Granström

kent.granstrom@comhem.se (JIRA)

unread,
Sep 5, 2019, 2:31:03 AM9/5/19
to jenkinsc...@googlegroups.com
Kent Granström assigned an issue to Unassigned
Change By: Kent Granström
Assignee: Kent Granström

kent.granstrom@comhem.se (JIRA)

unread,
Sep 5, 2019, 2:31:03 AM9/5/19
to jenkinsc...@googlegroups.com

kent.granstrom@comhem.se (JIRA)

unread,
Sep 5, 2019, 3:51:02 AM9/5/19
to jenkinsc...@googlegroups.com

Have now had some more time to dig into this and it appears as it wasn't the MSTest that caused this. It was the FxCop part in the "Record compiler warnings and static analysis results" that caused the problem. It was for some reason configured in the same group as the MSTest hence it was only executed in one of the configurations (Debug in this case). Moving it to the common part so that it is executed in both configurations yields a green build. 

Is it a bug that it fails the build with an exception if it is run in one branch of a multi-config job? Perhaps it is... To me it is probably something that I would look into in order to handle corner-cases.. 

So, what should we do with this issue? Close it or improve the plugin? Think I'll leave it to you hackers out there

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:21:01 AM9/5/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Bug JENKINS-59178
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:21:02 AM9/5/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 5, 2019, 7:10:02 PM9/5/19
to jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: In Progress Fixed but Unreleased
Resolution: Fixed

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 6, 2019, 4:14:03 AM9/6/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages