ClassCastException: cannot assign instance of OutputFrame to field OutputFormatFrame.method of type String in instance of OutputFormatFrame

Aleksey Shipilev shade at redhat.com
Thu Sep 7 10:59:03 UTC 2017


On 09/07/2017 05:19 AM, Chris wrote:
> Is this a known issue, or potentially my fault or that of Travis-CI? I'm
> not even sure which benchmark method had been running, so extracting a
> simple test case to reproduce it would be very difficult.
> 
> https://travis-ci.org/Pr0methean/BetterRandom/jobs/272740357#L3185

But you do know which test had failed:

# Benchmark: io.github.pr0methean.betterrandom.benchmark.AesCounterRandom128Benchmark.testBytesContended

It does not seem to be present in your current workspace now.

> <binary link had failed, forked VM corrupted the stream? Use EXTRA verbose
> to print exception>
> 
> java.lang.ClassCastException: cannot assign instance of
> org.openjdk.jmh.runner.link.OutputFrame to field
> org.openjdk.jmh.runner.link.OutputFormatFrame.method of type
> java.lang.String in instance of
> org.openjdk.jmh.runner.link.OutputFormatFrame

This exception is very odd, and it probably indicates the serialized stream that forked VM used to
push the result to host VM was indeed corrupted. Does the test do something fishy that may corrupt
the VM/library state?

-Aleksey



More information about the jmh-dev mailing list