java.lang.ClassCastException: Cannot cast java.math.BigDecimal to java.lang.Double

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

Solutions on the web

via Google Groups by Yuewen Wang, 3 months ago
Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
via Google Groups by Greg Saxton, 1 month ago
Cannot cast org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup to org.apache.logging.log4j.core.lookup.StrLookup
via Google Groups by joe, 6 months ago
Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
via Google Groups by Sayantan Raha, 1 year ago
Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
via GitHub by HolySamosa
, 2 years ago
Cannot cast $Proxy66 to org.atmosphere.cpr.AtmosphereResourceImpl
java.lang.ClassCastException: Cannot cast java.math.BigDecimal to java.lang.Double
at java.lang.Class.cast(Class.java:3005)
at sun.invoke.util.ValueConversions.primitiveConversion(ValueConversions.java:236)
at sun.invoke.util.ValueConversions.unboxDouble(ValueConversions.java:118)
at undefined.Time.(AnalogClockDemo.groovy:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at undefined.AnalogClockDemo$_run_closure1.doCall(AnalogClockDemo.groovy:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:809)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:792)
at groovyx.javafx.GroovyFX.start(GroovyFX.java:35)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
26 times, 4 months ago
Once, 4 months ago
2 times, 5 months ago
7 times, 7 months ago
25 more bugmates

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