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

URLTrigger gives severe error message instead of detecting change

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • urltrigger-plugin
    • None
    • Ubuntu 10.04, Jenkins 1.500, Jenkins URLTrigger Plug-in 0.27.

      The URLTrigger gives severe error instead of detecting change. From trigger log:

      [URLTrigger] - Poll with a URL

      Inspecting Monitor a change of the content content for URL http://build.netinsight.se/autobuild/dev/acf/continuous/release/

      Polling started on 2013-feb-12 12:12:12
      Polling for the job dev-acf
      Looking nodes where the poll can be run.
      Looking for a candidate node to run the poll.
      Looking for a node with no predefined label.
      Trying to poll with the last built on node.

      Polling on master.
      [ERROR] - SEVERE - Polling error null

      I think this problem started after restart (and possibly upgrade of Jenkins and URLTrigger plugin). Updating the configuration doesn't help, but if manually run once, it seems to start working again.

      Attached is the config.

          [JENKINS-16774] URLTrigger gives severe error message instead of detecting change

          Thanks Gregory for fixing this problem so quickly I've installed URLTrigger 1.83 and now there are no errors.

          Magnus Jacobsson added a comment - Thanks Gregory for fixing this problem so quickly I've installed URLTrigger 1.83 and now there are no errors.

          Marcel Huber added a comment -

          Thank you too.

          Marcel Huber added a comment - Thank you too.

          What I meant was I installed Environment Injector 1.83 and then the errors were gone. I now installed URLTrigger 0.28 and it's still ok.

          Magnus Jacobsson added a comment - What I meant was I installed Environment Injector 1.83 and then the errors were gone. I now installed URLTrigger 0.28 and it's still ok.

          dmeibusch added a comment - - edited

          We are seeing exactly this error (as reported above) now with URLTrigger 0.28.

          Stacktrace:

          WARNING: RunListener failed
          java.lang.NullPointerException
                  at org.dozer.MappingProcessor.getClassMap(MappingProcessor.java:1034)
                  at org.dozer.MappingProcessor.map(MappingProcessor.java:162)
                  at org.dozer.MappingProcessor.map(MappingProcessor.java:124)
                  at org.dozer.MappingProcessor.map(MappingProcessor.java:119)
                  at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:111)
                  at com.marvelution.hudson.plugins.apiv2.utils.BuildUtils.getCulpritFromRunnable(BuildUtils.java:54)
                  at com.marvelution.hudson.plugins.apiv2.listeners.BuildActivityCacheRunListener.getBuildActivityCacheFromRun(BuildActivit
          yCacheRunListener.java:79)
                  at com.marvelution.hudson.plugins.apiv2.listeners.BuildActivityCacheRunListener.onDeleted(BuildActivityCacheRunListener.j
          ava:64)
                  at hudson.model.listeners.RunListener.fireDeleted(RunListener.java:227)
                  at hudson.model.Run.delete(Run.java:1335)
                  at hudson.model.AbstractBuild.delete(AbstractBuild.java:478)
                  at hudson.tasks.LogRotator.perform(LogRotator.java:157)
                  at hudson.model.Job.logRotate(Job.java:381)
                  at hudson.model.Run.execute(Run.java:1631)
                  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
                  at hudson.model.ResourceController.execute(ResourceController.java:88)
                  at hudson.model.Executor.run(Executor.java:237)
          java.lang.NullPointerException: Current Project is null
                  at com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:138)
                  at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:276)
                  at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:163)
                  at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:36)
                  at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:54)
                  at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:36)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.getURLValue(URLTrigger.java:108)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModifiedEntry(URLTrigger.java:136)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModified(URLTrigger.java:125)
                  at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:197)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:619)
          java.lang.NullPointerException: Current Project is null
                  at com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:138)
                  at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:276)
                  at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:163)
                  at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:36)
                  at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:54)
                  at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:36)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.getURLValue(URLTrigger.java:108)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModifiedEntry(URLTrigger.java:136)
                  at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModified(URLTrigger.java:125)
                  at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:197)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:619
          

          dmeibusch added a comment - - edited We are seeing exactly this error (as reported above) now with URLTrigger 0.28. Stacktrace: WARNING: RunListener failed java.lang.NullPointerException at org.dozer.MappingProcessor.getClassMap(MappingProcessor.java:1034) at org.dozer.MappingProcessor.map(MappingProcessor.java:162) at org.dozer.MappingProcessor.map(MappingProcessor.java:124) at org.dozer.MappingProcessor.map(MappingProcessor.java:119) at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:111) at com.marvelution.hudson.plugins.apiv2.utils.BuildUtils.getCulpritFromRunnable(BuildUtils.java:54) at com.marvelution.hudson.plugins.apiv2.listeners.BuildActivityCacheRunListener.getBuildActivityCacheFromRun(BuildActivit yCacheRunListener.java:79) at com.marvelution.hudson.plugins.apiv2.listeners.BuildActivityCacheRunListener.onDeleted(BuildActivityCacheRunListener.j ava:64) at hudson.model.listeners.RunListener.fireDeleted(RunListener.java:227) at hudson.model.Run.delete(Run.java:1335) at hudson.model.AbstractBuild.delete(AbstractBuild.java:478) at hudson.tasks.LogRotator.perform(LogRotator.java:157) at hudson.model.Job.logRotate(Job.java:381) at hudson.model.Run.execute(Run.java:1631) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) java.lang.NullPointerException: Current Project is null at com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:138) at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:276) at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:163) at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:36) at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:54) at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:36) at org.jenkinsci.plugins.urltrigger.URLTrigger.getURLValue(URLTrigger.java:108) at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModifiedEntry(URLTrigger.java:136) at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModified(URLTrigger.java:125) at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:197) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException: Current Project is null at com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:138) at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:276) at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:163) at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:36) at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:54) at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:36) at org.jenkinsci.plugins.urltrigger.URLTrigger.getURLValue(URLTrigger.java:108) at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModifiedEntry(URLTrigger.java:136) at org.jenkinsci.plugins.urltrigger.URLTrigger.checkIfModified(URLTrigger.java:125) at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:197) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619

          @dmeibusch Your error relies on the Rebuild Jenkins plugin. This plugin delegates to envinject library.
          This error should be fixed with the last version of the Rebuild plugin (version 1.18).
          Please upgrade to version 1.18 and let me know.
          Thanks

          Gregory Boissinot added a comment - @dmeibusch Your error relies on the Rebuild Jenkins plugin. This plugin delegates to envinject library. This error should be fixed with the last version of the Rebuild plugin (version 1.18). Please upgrade to version 1.18 and let me know. Thanks

          dmeibusch added a comment -

          @gregory - thanks for the response. Upgraded Rebuild Plugin appears to have fixed the issue.

          dmeibusch added a comment - @gregory - thanks for the response. Upgraded Rebuild Plugin appears to have fixed the issue.

          dmeibusch added a comment -

          And now the issue has re-appeared on other builds - I'll raise a new issue with details.

          dmeibusch added a comment - And now the issue has re-appeared on other builds - I'll raise a new issue with details.

          Please check in the stack trace if the issue is relative to URLTrigger or Rebuild plugin (as in the above stack trace).
          Thanks in advance

          Gregory Boissinot added a comment - Please check in the stack trace if the issue is relative to URLTrigger or Rebuild plugin (as in the above stack trace). Thanks in advance

          dmeibusch added a comment -

          @gregory - Rebuild plugin update fixed the issue (re: stack trace above). I raised a new ticket, JENKINS-17145, with a new stack trace.

          dmeibusch added a comment - @gregory - Rebuild plugin update fixed the issue (re: stack trace above). I raised a new ticket, JENKINS-17145 , with a new stack trace.

          thanks

          Gregory Boissinot added a comment - thanks

            gbois Gregory Boissinot
            magjac Magnus Jacobsson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: