[JIRA] (JENKINS-57602) NPE in Support Core Plugin when reporting agents

1 view
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
May 22, 2019, 7:19:02 AM5/22/19
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Bug JENKINS-57602
NPE in Support Core Plugin when reporting agents
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2019-05-22 11:18
Environment: support-core-2.56
Priority: Minor Minor
Reporter: Oleg Nenashev

I have a node which has been configured with JCasC and then never connected. When Support  Core Plugin generates a bundle, I see NPE in System logs.

WARNING: Could not attach ''nodes.md'' to support bundle java.lang.NullPointerException at com.cloudbees.jenkins.support.util.Markdown.escapeBacktick(Markdown.java:17) at com.cloudbees.jenkins.support.impl.AboutJenkins$NodesContent.printTo(AboutJenkins.java:877) at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:56) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:316) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:278) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:820) at java.lang.Thread.run(Thread.java:748)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
May 22, 2019, 7:22:02 AM5/22/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
I have a node which has been configured with JCasC and then never connected. When Support  Core Plugin generates a bundle, I see NPE in System logs.

Acceptance criteria:
* There is handling of null inputs in the reporting path

Nice 2 have:
* Methods are annotated to ensure that there is no such mistakes happening in the future

{code:java}

WARNING: Could not attach ''nodes.md'' to support bundle java.lang.NullPointerException at com.cloudbees.jenkins.support.util.Markdown.escapeBacktick(Markdown.java:17) at com.cloudbees.jenkins.support.impl.AboutJenkins$NodesContent.printTo(AboutJenkins.java:877) at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:56) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:316) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:278) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:820) at java.lang.Thread.run(Thread.java:748)
{code}

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 27, 2019, 4:31:01 AM5/27/19
to jenkinsc...@googlegroups.com
Baptiste Mathus commented on Bug JENKINS-57602
 
Re: NPE in Support Core Plugin when reporting agents

I think we should check if this also reproducible out of JCasC configured.

At this stage, Oleg is saying it looks only like log spam, but we'd need to double check.

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 27, 2019, 4:32:02 AM5/27/19
to jenkinsc...@googlegroups.com

bmathus+ossjira@cloudbees.com (JIRA)

unread,
Jun 12, 2019, 3:46:02 AM6/12/19
to jenkinsc...@googlegroups.com
Baptiste Mathus assigned an issue to Unassigned
Change By: Baptiste Mathus
Assignee: Emilio  Escobar

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:40:02 PM7/11/19
to jenkinsc...@googlegroups.com
Ramon Leon started work on Bug JENKINS-57602
 
Change By: Ramon Leon
Status: Open In Progress

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:40:02 PM7/11/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:40:03 PM7/11/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:40:03 PM7/11/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:41:02 PM7/11/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:41:02 PM7/11/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 12, 2019, 10:43:04 AM7/12/19
to jenkinsc...@googlegroups.com

It only happens with JCasC because the node configured ha the field to null instead of "" (empty string). Not sure whether it's a bug in JCasC or not because the field is mandatory anyway. Why can you leave it empty in the UI?

If we consider that JCasC should do the same as the UI then it's a bug in the UI.

Oleg Nenashev WDYT?

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jul 12, 2019, 10:44:02 AM7/12/19
to jenkinsc...@googlegroups.com
Ramon Leon edited a comment on Bug JENKINS-57602
It only happens with JCasC because the node configured ha the field to *null* instead of *""* (empty string). Not sure whether it's a bug in JCasC or not because the field is mandatory anyway. Why can you leave it empty in the UI?


If we consider that JCasC should do the same as the UI then it's a bug in the UI.

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Mar 11, 2020, 3:30:03 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Ramon Leon
Status: In Review Resolved
Resolution: Fixed
Released As: support-core-2.58
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages