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

Null pointer exception using config file provider in Pipeline syntax generator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.303.3 config file provider plugin 3.8.1
    • 3.8.2

      When I try to use the Pipeline snippet syntax generator with the config file provider plugin, it reports a null pointer exception as follows:

      Error while serving http://mark-pc2.markwaite.net:8080/pipeline-syntax/descriptorByName/org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile/checkFileId
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile$DescriptorImpl.doCheckFileId(ManagedFile.java:132)
      	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:393)
      Caused: java.lang.reflect.InvocationTargetException
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:405)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:141)
      ...
      

      The screen shot when the failure happens looks like this:

      403 error when opened in job context

      An HTTP 403 is reported when the pipeline-syntax page is opened from inside a Pipeline job configuration page.

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: