gradle/gradle-profiler

GradleInvocationStarted cannot be cast to class GradleInvocationCompleted

blindpirate opened this issue · 0 comments

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