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, 10 months ago
java.lang.Long cannot be cast to java.lang.Integer
via GitHub by scabug
, 2 months ago
java.lang.Long 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
via Google Groups by Georgii Dernovyi, 1 year ago
scala.Some cannot be cast to java.lang.Integer
via Stack Overflow by Kenji Yoshida
, 2 years ago
java.lang.String 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, 5 months ago
Once, 6 months ago
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
5 times, 11 months ago
4 more bugmates

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