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

NPE in Support Core Plugin when reporting agents

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      support-core-2.58

      Description

      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
      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)
      

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Description 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.
            {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}
            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}
            batmat Baptiste Mathus made changes -
            Labels triaged
            batmat Baptiste Mathus made changes -
            Assignee Emilio Escobar [ escoem ]
            mramonleon Ramon Leon made changes -
            Assignee Ramon Leon [ mramonleon ]
            mramonleon Ramon Leon made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            mramonleon Ramon Leon made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            mramonleon Ramon Leon made changes -
            Remote Link This issue links to "PR #179 (Web Link)" [ 23228 ]
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Link This issue is duplicated by JENKINS-58880 [ JENKINS-58880 ]
            mramonleon Ramon Leon made changes -
            Released As support-core-2.58
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

              People

              Assignee:
              mramonleon Ramon Leon
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: