java.lang.ClassCastException: hudson.plugins.perforce.PerforceSCM

Jenkins JIRA | zoosnack | 7 years ago
  1. 0

    Recent upgrade caused this error to occur in a job that sends email notifications. Disabling email notification eliminates problem. java.lang.ClassCastException: hudson.plugins.perforce.PerforceSCM at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175) at hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164) at java.util.AbstractList$Itr.next(AbstractList.java:422) at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:198) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:168) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:162) at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:52) at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:163) at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:225) at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:903) at hudson.model.User.getProjects(User.java:369) at hudson.tasks.MailAddressResolver$DefaultAddressResolver.findMailAddressFor(MailAddressResolver.ja va:148) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:86) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:434) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:337) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:318) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:150) at hudson.tasks.MailSender.getMail(MailSender.java:141) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.tasks.Mailer.perform(Mailer.java:95) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:379) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:367) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:352) at hudson.model.Run.run(Run.java:969) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:116)

    Jenkins JIRA | 7 years ago | zoosnack
    java.lang.ClassCastException: hudson.plugins.perforce.PerforceSCM
  2. 0

    Recent upgrade caused this error to occur in a job that sends email notifications. Disabling email notification eliminates problem. java.lang.ClassCastException: hudson.plugins.perforce.PerforceSCM at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175) at hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164) at java.util.AbstractList$Itr.next(AbstractList.java:422) at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:198) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:168) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:162) at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:52) at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:163) at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:225) at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:903) at hudson.model.User.getProjects(User.java:369) at hudson.tasks.MailAddressResolver$DefaultAddressResolver.findMailAddressFor(MailAddressResolver.ja va:148) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:86) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:434) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:337) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:318) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:150) at hudson.tasks.MailSender.getMail(MailSender.java:141) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.tasks.Mailer.perform(Mailer.java:95) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:379) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:367) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:352) at hudson.model.Run.run(Run.java:969) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:116)

    Jenkins JIRA | 7 years ago | zoosnack
    java.lang.ClassCastException: hudson.plugins.perforce.PerforceSCM
  3. 0

    I tried to configure the mail notification for failed builds. After a build failed i get this exception: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] There was test failures. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 32 seconds [INFO] Finished at: Tue Nov 17 18:49:54 CET 2009 [INFO] Final Memory: 26M/48M [INFO] ------------------------------------------------------------------------ Warte bis Hudson die Datensammlung abgeschlossen hat ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.ClassCastException: hudson.plugins.templateproject.ProxySCM cannot be cast to hudson.scm.SubversionSCM at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175) at hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164) at java.util.AbstractList$Itr.next(AbstractList.java:345) at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:200) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:170) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:164) at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:52) at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:159) at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:314) at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1089) at hudson.model.User.getProjects(User.java:377) at hudson.tasks.MailAddressResolver$DefaultAddressResolver.findMailAddressFor(MailAddressResolver.java:148) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:86) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:476) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:344) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:325) at hudson.tasks.MailSender.createFailureMail(MailSender.java:198) at hudson.tasks.MailSender.getMail(MailSender.java:133) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:54) at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:679) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:383) at hudson.model.Run.run(Run.java:1176) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Hudson version is: 1.333 The Project is a maven multi module project which uses Subversion as its SCM. I have the "Hudson Template Project plugin" installed. However my project is not using the Template Project Plugin.

    Jenkins JIRA | 7 years ago | abendt
    java.lang.ClassCastException: hudson.plugins.templateproject.ProxySCM cannot be cast to hudson.scm.SubversionSCM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    - From the Hudson main page click on 'People' Expected: To see the users page. What I Got: Status Code: 500 Exception: Stacktrace: java.lang.ClassCastException: hudson.plugins.mercurial.MercurialSCM cannot be cast to hudson.scm.SubversionSCM at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175) at hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164) at java.util.AbstractList$Itr.next(Unknown Source) at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:200) at hudson.maven.MavenModuleSetBuild$1.(MavenModuleSetBuild.java:170) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:164) at hudson.maven.FilteredChangeLogSet.(FilteredChangeLogSet.java:52) at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:159) at hudson.model.View$People.getUserInfo(View.java:480) at hudson.model.View$People.(View.java:458) at hudson.model.Hudson.getPeople(Hudson.java:769) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:169) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 7 years ago | timmytonyboots
    java.lang.ClassCastException: hudson.plugins.mercurial.MercurialSCM cannot be cast to hudson.scm.SubversionSCM
  6. 0

    I tried to configure the mail notification for failed builds. After a build failed i get this exception: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] There was test failures. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 32 seconds [INFO] Finished at: Tue Nov 17 18:49:54 CET 2009 [INFO] Final Memory: 26M/48M [INFO] ------------------------------------------------------------------------ Warte bis Hudson die Datensammlung abgeschlossen hat ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.ClassCastException: hudson.plugins.templateproject.ProxySCM cannot be cast to hudson.scm.SubversionSCM at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175) at hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166) at hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164) at java.util.AbstractList$Itr.next(AbstractList.java:345) at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:200) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:170) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:164) at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:52) at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:159) at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:314) at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1089) at hudson.model.User.getProjects(User.java:377) at hudson.tasks.MailAddressResolver$DefaultAddressResolver.findMailAddressFor(MailAddressResolver.java:148) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:86) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:476) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:344) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:325) at hudson.tasks.MailSender.createFailureMail(MailSender.java:198) at hudson.tasks.MailSender.getMail(MailSender.java:133) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:54) at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:679) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:383) at hudson.model.Run.run(Run.java:1176) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Hudson version is: 1.333 The Project is a maven multi module project which uses Subversion as its SCM. I have the "Hudson Template Project plugin" installed. However my project is not using the Template Project Plugin.

    Jenkins JIRA | 7 years ago | abendt
    java.lang.ClassCastException: hudson.plugins.templateproject.ProxySCM cannot be cast to hudson.scm.SubversionSCM

    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.plugins.perforce.PerforceSCM

      at hudson.scm.SubversionChangeLogSet$LogEntry.preparePath()
    2. Hudson
      SubversionChangeLogSet$LogEntry$1.get
      1. hudson.scm.SubversionChangeLogSet$LogEntry.preparePath(SubversionChangeLogSet.java:175)
      2. hudson.scm.SubversionChangeLogSet$LogEntry.access$200(SubversionChangeLogSet.java:118)
      3. hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:166)
      4. hudson.scm.SubversionChangeLogSet$LogEntry$1.get(SubversionChangeLogSet.java:164)
      4 frames
    3. Java RT
      AbstractList$Itr.next
      1. java.util.AbstractList$Itr.next(AbstractList.java:422)
      1 frame
    4. Hudson Maven Embedder
      MavenBuild.getChangeSet
      1. hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:198)
      2. hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:168)
      3. hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:162)
      4. hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:52)
      5. hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:163)
      5 frames
    5. Hudson
      User.getProjects
      1. hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:225)
      2. hudson.model.AbstractProject.hasParticipant(AbstractProject.java:903)
      3. hudson.model.User.getProjects(User.java:369)
      3 frames