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

using pyLint results to an NPE

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using the pyLint parser like this:

      recordIssues enabledForFailure: true, tool: pyLint(pattern: 'pylint.log')
       
      Results in such NPE:

      Error when executing always post condition:
      java.lang.NullPointerException
      at org.jenkinsci.plugins.structs.SymbolLookup.findDescriptor(SymbolLookup.java:147)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:178)
      at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
      at sun.reflect.GeneratedMethodAccessor607.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Also, pyLint does not appear in the list of available parsers in the snippet generator.

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Are you using another plugin that defines a symbol `pylint`?

          Show
          drulli Ulli Hafner added a comment - Are you using another plugin that defines a symbol `pylint`?
          Hide
          emanuelez emanuelez added a comment -

          No I am not. It's a fresh Jenkins installation.

          Show
          emanuelez emanuelez added a comment - No I am not. It's a fresh Jenkins installation.
          Hide
          drulli Ulli Hafner added a comment -

          Hmm, the error is also totally within the workflow plugin. Something else seems to be broken here. Do other parser show up in the snippet generator?

          Show
          drulli Ulli Hafner added a comment - Hmm, the error is also totally within the workflow plugin. Something else seems to be broken here. Do other parser show up in the snippet generator?
          Hide
          drulli Ulli Hafner added a comment -

          Andrew Bayer, Jesse Glick: I'm not sure if this is related to JENKINS-55349, now an NPE occurs in the structs plugin that is invoked by workflow-dsl plugin.

          Show
          drulli Ulli Hafner added a comment - Andrew Bayer , Jesse Glick : I'm not sure if this is related to JENKINS-55349 , now an NPE occurs in the structs plugin that is invoked by workflow-dsl plugin.
          Hide
          emanuelez emanuelez added a comment -

          It looks like all the other parsers show up in the snippet generator.

          Show
          emanuelez emanuelez added a comment - It looks like all the other parsers show up in the snippet generator.
          Hide
          jglick Jesse Glick added a comment -

          From the stack trace it looks like Injector.getInstance(Class) is returning null, yet according to documentation this is illegal.

          Is there a specific way to reproduce this error from scratch so that it can be debugged?

          Show
          jglick Jesse Glick added a comment - From the stack trace it looks like Injector.getInstance(Class) is returning null , yet according to documentation this is illegal. Is there a specific way to reproduce this error from scratch so that it can be debugged?
          Hide
          drulli Ulli Hafner added a comment -

          Please provide some detailed steps on how to reproduce.

          Show
          drulli Ulli Hafner added a comment - Please provide some detailed steps on how to reproduce.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              emanuelez emanuelez
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: