java.lang.ClassCastException: oracle.jdbc.driver.T4CVarcharAccessor incompatible with java.io.Serializable

Oracle Community | User10313756-Oracle | 7 years ago
  1. 0

    During hibernate query error in OC4J 10.1.3.4

    Oracle Community | 7 years ago | User10313756-Oracle
    java.lang.ClassCastException: oracle.jdbc.driver.T4CVarcharAccessor incompatible with java.io.Serializable
  2. 0

    HQL Casting Error

    Stack Overflow | 6 years ago | Noor
    java.lang.ClassCastException: java.util.LinkedList cannot be cast to java.lang.Long
  3. 0

    Hibernate Envers: Problem querying revisions

    Stack Overflow | 6 years ago | martin
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.util.Map
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring hibernate template list as a parameter

    Stack Overflow | 6 years ago | Hurda
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.Long
  6. 0

    why does hibernate map tinyint(1) to a java.lang.Boolean?

    Stack Overflow | 2 years ago | Steve Hummingbird
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

    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

      oracle.jdbc.driver.T4CVarcharAccessor incompatible with java.io.Serializable

      at org.hibernate.loader.Loader.getKeyFromResultSet()
    2. Hibernate
      QueryLoader.list
      1. org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1088)
      2. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:554)
      3. org.hibernate.loader.Loader.doQuery(Loader.java:689)
      4. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
      5. org.hibernate.loader.Loader.doList(Loader.java:2145)
      6. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
      7. org.hibernate.loader.Loader.list(Loader.java:2024)
      8. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
      8 frames
    3. Hibernate HQL/JP-QL Parser
      QueryTranslatorImpl.list
      1. org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
      1 frame
    4. Hibernate
      QueryImpl.list
      1. org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
      2. org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
      3. org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
      3 frames