java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

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 Yang Zhang, 1 year ago
java.lang.Long cannot be cast to java.lang.Integer
via GitHub by scabug
, 4 months ago
java.lang.Long cannot be cast to java.lang.Integer
via Stack Overflow by Benjamin
, 1 year ago
java.lang.String cannot be cast to java.lang.Integer
via Stack Overflow by CheatEx
, 2 years ago
java.lang.String cannot be cast to java.lang.Integer
via Stack Overflow by AmigoNico
, 2 years ago
java.lang.String cannot be cast to java.lang.Integer
via GitHub by yoshi49535
, 1 year ago
scala.math.BigInt cannot be cast to java.lang.Integer
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at scala.runtime.BoxesRunTime.unboxToInt(Unknown Source)
at scala.Tuple2._2$mcI$sp(Tuple2.scala:22)
at com.pod.db.DbSetup$$anonfun$mock$1.apply$mcV$sp(db.scala:37)
at com.pod.db.DbSetup$$anonfun$mock$1.apply(db.scala:34)
at com.pod.db.DbSetup$$anonfun$mock$1.apply(db.scala:34)
at ru.circumflex.orm.package$$anonfun$using$1.apply(package.scala:41)
at ru.circumflex.orm.package$$anonfun$using$1.apply(package.scala:39)
at ru.circumflex.core.Context$.executeInNew(context.scala:83)

Users with the same issue

2 times, 7 months ago
Once, 9 months ago
Once, 9 months ago
5 times, 1 year ago
2 times, 1 year ago

Write tip

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