Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GradleInvocationStarted cannot be cast to class GradleInvocationCompleted #563

Open
blindpirate opened this issue Jul 16, 2024 · 0 comments

Comments

@blindpirate
Copy link
Contributor

This was seen in https://builds.gradle.org/buildConfiguration/Gradle_Master_Check_PerformanceTestTestLinuxbucket21/85135554

======= Failed test run #1 ==========
  java.util.concurrent.CompletionException: java.lang.ClassCastException: class org.gradle.profiler.client.protocol.messages.GradleInvocationStarted cannot be cast to class org.gradle.profiler.client.protocol.messages.GradleInvocationCompleted (org.gradle.profiler.client.protocol.messages.GradleInvocationStarted and org.gradle.profiler.client.protocol.messages.GradleInvocationCompleted are in unnamed module of loader 'app')
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:840)
  Caused by: java.lang.ClassCastException: class org.gradle.profiler.client.protocol.messages.GradleInvocationStarted cannot be cast to class org.gradle.profiler.client.protocol.messages.GradleInvocationCompleted (org.gradle.profiler.client.protocol.messages.GradleInvocationStarted and org.gradle.profiler.client.protocol.messages.GradleInvocationCompleted are in unnamed module of loader 'app')
    at org.gradle.profiler.client.protocol.ServerConnection.receiveGradleInvocationCompleted(ServerConnection.java:38)
    at org.gradle.profiler.studio.StudioGradleClient.collectGradleInvocations(StudioGradleClient.java:130)
    at org.gradle.profiler.studio.StudioGradleClient.lambda$waitForSyncToFinish$2(StudioGradleClient.java:105)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
    ... 3 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant