org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '1975/10/29' with class 'java.lang.String' to class 'java.lang.Number'

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 Apache's JIRA Issue Tracker by Aaron Zeckoski, 1 year ago
Cannot cast object '1975/10/29' with class 'java.lang.String' to class 'java.lang.Number'
via scala-lang.org by Unknown author, 2 years ago
Cannot cast object 'hello' with class 'java.lang.String' to class 'java.lang.Integer'
via dip.jp by Unknown author, 2 years ago
Cannot cast object '文字列を代入' with class 'java.lang.String' to class 'java.lang.Integer'
via GitHub by lbruand
, 2 years ago
Cannot cast object '[null, null]' with class 'java.util.ArrayList' to class 'java.lang.Number'
via GitHub by danielsun1106
, 1 year ago
Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead
via Google Groups by John Sanabria, 2 years ago
Cannot cast object '[D@11b9fb1' with class '[D' to class 'java.lang.Number'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '1975/10/29' with class 'java.lang.String' to class 'java.lang.Number'
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:132)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:261)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2392)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3307)
at groovy.lang.MetaClassImpl.setProperties(MetaClassImpl.java:1506)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1483)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1404)
at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:775)

Users with the same issue

Once, 4 months ago
Once, 5 months ago
552 times, 6 months ago
Once, 9 months ago
Once, 11 months ago
7 more bugmates

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