java.lang.ClassCastException: hudson.matrix.MatrixProject cannot be cast to hudson.model.Project

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.ClassCastException: hudson.matrix.MatrixProject cannot be cast to hudson.model.Project
at hudson.plugins.templateproject.ProxyBuilder.getProject(ProxyBuilder.java:38)
at hudson.plugins.templateproject.ProxyBuilder.prebuild(ProxyBuilder.java:98)
at hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:596)
at hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:591)
at hudson.model.Build$RunnerImpl.doRun(Build.java:114)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
at hudson.model.Run.run(Run.java:1179)
at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.