java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by abendt,
  • 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.
    via by abendt,
  • 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)
    via by zoosnack,
  • - 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)
    via by timmytonyboots,
  • 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)
    via by zoosnack,
  • - 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)
    via by timmytonyboots,
    • 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)
    No Bugmate found.