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

Jenkins JIRA | Grant Limberg | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.

    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:374)
      2. hudson.model.AbstractProject.poll(AbstractProject.java:1232)
      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:680)
      6 frames