java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener

Jenkins JIRA | Patrick Renaud | 6 years ago
  1. 0

    Since upgrading to the Git plugin version 1.1.1, polling no longer works. The following error is displayed in the polling log for all projects using the git scm plugin: Started on Nov 8, 2010 12:45:58 PM Using strategy: Default [poll] Last Build : #1014 [poll] Last Built Revision: Revision 694552cd898421418e8b06235dfb00b676a8ed7a (origin/master) ERROR: Failed to record SCM polling java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:170) at hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:428) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject.poll(AbstractProject.java:1232) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:680) Everything works as expected when downgrading back to version 1.1 of the plugin

    Jenkins JIRA | 6 years ago | Grant Limberg
    java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Since upgrading to the Git plugin version 1.1.1, polling no longer works. The following error is displayed in the polling log for all projects using the git scm plugin: Started on Nov 8, 2010 12:45:58 PM Using strategy: Default [poll] Last Build : #1014 [poll] Last Built Revision: Revision 694552cd898421418e8b06235dfb00b676a8ed7a (origin/master) ERROR: Failed to record SCM polling java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:170) at hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:428) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject.poll(AbstractProject.java:1232) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:680) Everything works as expected when downgrading back to version 1.1 of the plugin

    Jenkins JIRA | 6 years ago | Grant Limberg
    java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener
  4. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener

      at hudson.plugins.git.util.GitUtils.getPollEnvironment()
    2. Hudson GIT plugin
      GitSCM.pollChanges
      1. hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:170)
      2. hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:428)
      2 frames
    3. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM.poll(SCM.java:372)
      2. hudson.model.AbstractProject.poll(AbstractProject.java:1195)
      3. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417)
      4. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446)
      5. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:619)
      6 frames