java.lang.ClassCastException: java.lang.Double cannot be cast to java.math.BigDecimal

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by alanfx
, 1 year ago
java.lang.Double cannot be cast to java.math.BigDecimal
java.lang.ClassCastException: java.lang.Double cannot be cast to java.math.BigDecimal
at java.math.BigDecimal.compareTo(BigDecimal.java:220)
at java.util.Arrays.binarySearch0(Arrays.java:2439)
at java.util.Arrays.binarySearch(Arrays.java:2379)
at org.radargun.utils.Fuzzy.next(Fuzzy.java:67)
at org.radargun.stages.cache.test.legacy.KeyExpirationTestStage$Logic.run(KeyExpirationTestStage.java:169)
at org.radargun.stages.test.legacy.LegacyStressor.runInternal(LegacyStressor.java:108)
at org.radargun.stages.test.legacy.LegacyStressor.run(LegacyStressor.java:65)

Users with the same issue

Once, 10 months ago
2 times, 1 year ago

Write tip

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