java.lang.ClassCastException: it.domain.InterventoPK cannot be cast to java.lang.Integer

  1. 0

    Hibernate Search does not work woth composite primary key using @IdClass

    Stack Overflow | 4 years ago | Silvio Troia
    java.lang.ClassCastException: it.domain.InterventoPK cannot be cast to java.lang.Integer
  2. 0

    Hibernate Community • View topic - ClassCastException while indexing database

    hibernate.org | 1 year ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  3. 0

    Criteria: ClassCastException Integer to Long

    Stack Overflow | 3 years ago | Thiago Maltempi
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't use numeric filter in a lazy loading datatable: ClassCastException String to Integer

    Stack Overflow | 3 years ago | Guilherme
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

  1. tfr 1 times, last 7 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    it.domain.InterventoPK cannot be cast to java.lang.Integer

    at org.hibernate.type.descriptor.java.IntegerTypeDescriptor.unwrap()
  2. Hibernate
    CriteriaImpl.list
    1. org.hibernate.type.descriptor.java.IntegerTypeDescriptor.unwrap(IntegerTypeDescriptor.java:36)
    2. org.hibernate.type.descriptor.sql.IntegerTypeDescriptor$1.doBind(IntegerTypeDescriptor.java:57)
    3. org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:92)
    4. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:305)
    5. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:300)
    6. org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1891)
    7. org.hibernate.loader.Loader.bindParameterValues(Loader.java:1862)
    8. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1737)
    9. org.hibernate.loader.Loader.doQuery(Loader.java:828)
    10. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
    11. org.hibernate.loader.Loader.doList(Loader.java:2447)
    12. org.hibernate.loader.Loader.doList(Loader.java:2433)
    13. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2263)
    14. org.hibernate.loader.Loader.list(Loader.java:2258)
    15. org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:122)
    16. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1535)
    17. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374)
    17 frames
  3. Hibernate Search Engine
    OptionallyWrapInJTATransaction.run
    1. org.hibernate.search.batchindexing.impl.IdentifierConsumerEntityProducer.loadList(IdentifierConsumerEntityProducer.java:150)
    2. org.hibernate.search.batchindexing.impl.IdentifierConsumerEntityProducer.loadAllFromQueue(IdentifierConsumerEntityProducer.java:117)
    3. org.hibernate.search.batchindexing.impl.IdentifierConsumerEntityProducer.run(IdentifierConsumerEntityProducer.java:94)
    4. org.hibernate.search.batchindexing.impl.OptionallyWrapInJTATransaction.run(OptionallyWrapInJTATransaction.java:84)
    4 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:619)
    3 frames