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

NPE from BuildTrigger$DescriptorImpl.showEvenIfUnstableOption

    Details

    • Similar Issues:

      Description

      In 1.480.2 and 1.500-SNAPSHOT, get an exception while adding a new Build other projects post-build action to a freestyle project:

      … hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: descriptor.showEvenIfUnstableOption(targetType). Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      	at hudson.tasks.BuildTrigger$DescriptorImpl.showEvenIfUnstableOption(BuildTrigger.java:315)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
      	at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
      	at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      	at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
      	at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
      	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
      	at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72)
      	at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
      	at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsBoolean(ExpressionSupport.java:71)
      	at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:97)
      	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      	at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
      	at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
      	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
      	at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
      	at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      	at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
      	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
      	at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
      	at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
      	at hudson.widgets.RenderOnDemandClosure$1.generateResponse(RenderOnDemandClosure.java:91)
      	…
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/ExpressionFactory2.java
            http://jenkins-ci.org/commit/jenkins/810a3954cc07eb0561ee201d4a1e8efeb41d18a1
            Log:
            JENKINS-16444 Diagnostics useful for this and similar exceptions during Jelly evaluation.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/ExpressionFactory2.java http://jenkins-ci.org/commit/jenkins/810a3954cc07eb0561ee201d4a1e8efeb41d18a1 Log: JENKINS-16444 Diagnostics useful for this and similar exceptions during Jelly evaluation.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/tasks/BuildTrigger.java
            core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly
            http://jenkins-ci.org/commit/jenkins/0bdde83cbb18300d555dda4e7f0ee663f4ad267f
            Log:
            [FIXED JENKINS-16444] NPE showEvenIfUnstableOption when first adding trigger section.
            At this time the target project is unset so it has no known type and we just have to assume the threshold is valid.

            Compare: https://github.com/jenkinsci/jenkins/compare/a1e709ddf0ca...0bdde83cbb18

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/tasks/BuildTrigger.java core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly http://jenkins-ci.org/commit/jenkins/0bdde83cbb18300d555dda4e7f0ee663f4ad267f Log: [FIXED JENKINS-16444] NPE showEvenIfUnstableOption when first adding trigger section. At this time the target project is unset so it has no known type and we just have to assume the threshold is valid. Compare: https://github.com/jenkinsci/jenkins/compare/a1e709ddf0ca...0bdde83cbb18
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2207
            JENKINS-16444 Diagnostics useful for this and similar exceptions during Jelly evaluation. (Revision 810a3954cc07eb0561ee201d4a1e8efeb41d18a1)
            [FIXED JENKINS-16444] NPE showEvenIfUnstableOption when first adding trigger section. (Revision 0bdde83cbb18300d555dda4e7f0ee663f4ad267f)

            Result = SUCCESS
            Jesse Glick : 810a3954cc07eb0561ee201d4a1e8efeb41d18a1
            Files :

            • core/src/main/java/hudson/ExpressionFactory2.java

            Jesse Glick : 0bdde83cbb18300d555dda4e7f0ee663f4ad267f
            Files :

            • core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly
            • core/src/main/java/hudson/tasks/BuildTrigger.java
            • changelog.html
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2207 JENKINS-16444 Diagnostics useful for this and similar exceptions during Jelly evaluation. (Revision 810a3954cc07eb0561ee201d4a1e8efeb41d18a1) [FIXED JENKINS-16444] NPE showEvenIfUnstableOption when first adding trigger section. (Revision 0bdde83cbb18300d555dda4e7f0ee663f4ad267f) Result = SUCCESS Jesse Glick : 810a3954cc07eb0561ee201d4a1e8efeb41d18a1 Files : core/src/main/java/hudson/ExpressionFactory2.java Jesse Glick : 0bdde83cbb18300d555dda4e7f0ee663f4ad267f Files : core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly core/src/main/java/hudson/tasks/BuildTrigger.java changelog.html

              People

              • Assignee:
                Unassigned
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: