• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • urltrigger-plugin
    • None

      Not sure what changed recently, but URL trigger started causing NullPointerExceptions whenever a job configuration change is attempted to be saved or applied:

      Caused by: java.lang.NullPointerException
      	at org.jenkinsci.plugins.urltrigger.URLTrigger.getLogFile(URLTrigger.java:266)
      	at org.jenkinsci.plugins.urltrigger.URLTrigger.getProjectActions(URLTrigger.java:108)
      	at hudson.maven.AbstractMavenProject.createTransientActions(AbstractMavenProject.java:188)
      	at hudson.maven.MavenModuleSet.createTransientActions(MavenModuleSet.java:464)
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724)
      	at hudson.maven.MavenModuleSet.updateTransientActions(MavenModuleSet.java:460)
      	at hudson.model.AbstractProject.save(AbstractProject.java:279)
      	at hudson.model.AbstractItem.setDisplayName(AbstractItem.java:156)
      	at hudson.model.Job.doConfigSubmit(Job.java:1044)
      	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
      	at sun.reflect.GeneratedMethodAccessor670.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
      

      The Jenkins version is 1.522 and URL trigger plugin is 0.29

      In jenkins.log file the following errors are displayed:

      Jul 10, 2013 12:26:12 AM org.jenkinsci.lib.xtrigger.AbstractTrigger run
      SEVERE: Severe Error during the trigger execution null
      java.lang.NullPointerException
              at org.jenkinsci.plugins.urltrigger.URLTrigger.getLogFile(URLTrigger.java:266)
              at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:128)
              at hudson.triggers.Trigger.checkTriggers(Trigger.java:261)
              at hudson.triggers.Trigger$Cron.doRun(Trigger.java:209)
              at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
              at java.util.TimerThread.mainLoop(Timer.java:512)
              at java.util.TimerThread.run(Timer.java:462)
      

      I verified that URL that URLTrigger is configured with is updated per check-in, so that's not an issue.

      What other info do you need? This is blocking all snapshot builds (triggered thru URLTrigger) because they simply don't run anymore.

          [JENKINS-18683] Jenkins 1.522 config changes cannot be saved

          Tudor Har added a comment -

          The attached screenshot shows the "Oops" error message:

          A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.

          This has same trace as shown in /var/log/jenkins/jenkins.log from my earlier comments

          This configuration changes fail to be saved only in case of snapshot builds, where URLTrigger is used to fire off a build whenever a change is checked-in

          If the build doesn't define URL trigger plugin in Build Triggers section, this error does not happen

          Tudor Har added a comment - The attached screenshot shows the "Oops" error message: A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened. This has same trace as shown in /var/log/jenkins/jenkins.log from my earlier comments This configuration changes fail to be saved only in case of snapshot builds, where URLTrigger is used to fire off a build whenever a change is checked-in If the build doesn't define URL trigger plugin in Build Triggers section, this error does not happen

          Any movement on this? It is killing my jobs as well

          +1

          Stephen Tunney added a comment - Any movement on this? It is killing my jobs as well +1

          Kevin R. added a comment -

          Same problem here. +1

          Kevin R. added a comment - Same problem here. +1

          Tomasz Oponowicz added a comment - Prepared pull request: https://github.com/jenkinsci/urltrigger-plugin/pull/5

          Code changed in jenkins
          User: Tomasz Oponowicz
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerAction.java
          http://jenkins-ci.org/commit/urltrigger-plugin/b76dcf8004c735e0a29c51511bbb7d08f3896786
          Log:
          JENKINS-18683 Configuration can't be saved.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tomasz Oponowicz Path: pom.xml src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerAction.java http://jenkins-ci.org/commit/urltrigger-plugin/b76dcf8004c735e0a29c51511bbb7d08f3896786 Log: JENKINS-18683 Configuration can't be saved.

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerAction.java
          http://jenkins-ci.org/commit/urltrigger-plugin/35fcd3fd4230f9d158b0f0f799df12baf20396ba
          Log:
          Merge pull request #5 from tomasz-oponowicz/jenkins-18683

          JENKINS-18683 Jenkins 1.522 config changes cannot be saved

          Compare: https://github.com/jenkinsci/urltrigger-plugin/compare/3ef6b011c06a...35fcd3fd4230

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerAction.java http://jenkins-ci.org/commit/urltrigger-plugin/35fcd3fd4230f9d158b0f0f799df12baf20396ba Log: Merge pull request #5 from tomasz-oponowicz/jenkins-18683 JENKINS-18683 Jenkins 1.522 config changes cannot be saved Compare: https://github.com/jenkinsci/urltrigger-plugin/compare/3ef6b011c06a...35fcd3fd4230

            gbois Gregory Boissinot
            thar Tudor Har
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: