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

GitHub | goeh | 4 months ago
  1. 0

    ClassCastException when using unique constraint on multiple columns

    GitHub | 4 months ago | goeh
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  2. 0

    Implement sql 'like' in criteria. Hibernate

    Stack Overflow | 4 years ago | Divers
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
  3. 0

    error writing vector of longs to pail - caused by inconsistent treatment of integer types?

    GitHub | 4 years ago | robinkraft
    cascading.tuple.TupleException: unable to sink into output identifier: /tmp/cascalog_reserved/0b005123-f278-4b53-8e74-a6d5f2d4594a
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    New versions of Movecraft crashing with older versions.

    GitHub | 2 years ago | striker0822
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  6. 0

    ClassCastException on Attachment.getLength

    GitHub | 3 years ago | dlvenable
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

  1. tfr 1 times, last 6 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

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

    at org.hibernate.type.descriptor.java.IntegerTypeDescriptor.unwrap()
  2. Hibernate
    CriteriaImpl.uniqueResult
    1. org.hibernate.type.descriptor.java.IntegerTypeDescriptor.unwrap(IntegerTypeDescriptor.java:19)
    2. org.hibernate.type.descriptor.sql.IntegerTypeDescriptor$1.doBind(IntegerTypeDescriptor.java:46)
    3. org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:74)
    4. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:253)
    5. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:248)
    6. org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:2044)
    7. org.hibernate.loader.Loader.bindParameterValues(Loader.java:2013)
    8. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1943)
    9. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)
    10. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)
    11. org.hibernate.loader.Loader.doQuery(Loader.java:919)
    12. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)
    13. org.hibernate.loader.Loader.doList(Loader.java:2610)
    14. org.hibernate.loader.Loader.doList(Loader.java:2593)
    15. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)
    16. org.hibernate.loader.Loader.list(Loader.java:2417)
    17. org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:109)
    18. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1787)
    19. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:363)
    20. org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:385)
    20 frames
  3. Grails GORM
    HibernateCriteriaBuilder.executeUniqueResultWithProxyUnwrap
    1. grails.orm.HibernateCriteriaBuilder.executeUniqueResultWithProxyUnwrap(HibernateCriteriaBuilder.java:144)
    1 frame