[GRADLE-681] Unexpected ClassCastException Created: 06/Oct/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Russel Winder Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

Attempting to run the uninstall task on the Gant project using a brand new Gradle build leads to:

|> gradle uninstall
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/users/russel/lib/Java/gradle/lib/logback-classic-0.9.17.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/users/russel/lib/Java/gradle/lib/logback-classic-0.9.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

FAILURE: Build aborted because of an internal error.

  • What went wrong:
    Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org.
  • Try:
    Run with -d option to get additional debug info.
  • Exception is:
    java.lang.ClassCastException: org.gradle.invocation.DefaultGradle cannot be cast to org.gradle.api.internal.project.IProjectRegistry
    at org.gradle.api.internal.project.DefaultProject.<init>(DefaultProject.groovy:43) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.api.internal.project.ProjectFactory.createProject(ProjectFactory.java:51) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.api.internal.project.ProjectFactory.createProject(ProjectFactory.java:30) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.initialization.BuildLoader.createProjects(BuildLoader.java:74) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.initialization.BuildLoader.load(BuildLoader.java:55) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:143) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:124) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.GradleLauncher.run(GradleLauncher.java:95) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.Main.execute(Main.java:100) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at org.gradle.Main.main(Main.java:43) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_16]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_16]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_16]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_16]
    at org.gradle.BootstrapMain.main(BootstrapMain.java:50) [gradle-core-0.9-20091006074108+0100.jar:0.9-20091006074108+0100]

BUILD FAILED

Total time: 2.278 secs



 Comments   
Comment by Adam Murdoch [ 24/Mar/10 ]

Can we close this? Are you still seeing this problem?

Generated at Wed Jun 30 11:36:08 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.