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 GitHub by goeh
, 1 year ago
java.lang.Long cannot be cast to java.lang.Integer
via Stack Overflow by Unknown author, 2 years ago
java.lang.String cannot be cast to java.lang.Integer
via Stack Overflow by Ioan Tiba
, 1 year ago
package.entities.module.fi.pk.PK_FAKVS_DB cannot be cast to java.lang.Integer
via Stack Overflow by Guilherme
, 2 years ago
via Hibernate JIRA by Cody Lerum, 1 year ago
java.lang.Long cannot be cast to java.lang.Integer
via Hibernate JIRA by Cody Lerum, 2 years ago
java.lang.Long cannot be cast to java.lang.Integer
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer	at org.hibernate.type.descriptor.java.IntegerTypeDescriptor.unwrap(IntegerTypeDescriptor.java:19)	at org.hibernate.type.descriptor.sql.IntegerTypeDescriptor$1.doBind(IntegerTypeDescriptor.java:46)	at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:74)	at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:253)	at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:248)	at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:2044)	at org.hibernate.loader.Loader.bindParameterValues(Loader.java:2013)	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1943)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)	at org.hibernate.loader.Loader.doQuery(Loader.java:919)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)	at org.hibernate.loader.Loader.doList(Loader.java:2610)	at org.hibernate.loader.Loader.doList(Loader.java:2593)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)	at org.hibernate.loader.Loader.list(Loader.java:2417)	at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:109)	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1787)	at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:363)	at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:385)	at grails.orm.HibernateCriteriaBuilder.executeUniqueResultWithProxyUnwrap(HibernateCriteriaBuilder.java:144)