java.lang.ClassCastException

Hibernate JIRA | Jessica Marchiori | 1 decade ago
  1. 0

    The following delete gives ClassCastException Session s = openSession(); s.setCacheMode(CacheMode.IGNORE); Transaction t = s.beginTransaction(); s.createQuery("delete com.finantix.fxc.persistents.directory.breakdown.lim.bl.pom.impl.PAssetTypeBI").executeUpdate(); java.lang.ClassCastException at org.hibernate.hql.ast.FromElementFactory.createFromElement(FromElementFactory.java:410) at org.hibernate.hql.ast.FromElementFactory.createAndAddFromElement(FromElementFactory.java:388) at org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:79) at org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67) at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:221) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2767) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2656) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:582) at org.hibernate.hql.antlr.HqlSqlBaseWalker.deleteStatement(HqlSqlBaseWalker.java:319) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:186) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:191) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:133) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:86) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:429) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:890) at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:871) at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89) at

    Hibernate JIRA | 1 decade ago | Jessica Marchiori
    java.lang.ClassCastException
  2. 0

    The following delete gives ClassCastException Session s = openSession(); s.setCacheMode(CacheMode.IGNORE); Transaction t = s.beginTransaction(); s.createQuery("delete com.finantix.fxc.persistents.directory.breakdown.lim.bl.pom.impl.PAssetTypeBI").executeUpdate(); java.lang.ClassCastException at org.hibernate.hql.ast.FromElementFactory.createFromElement(FromElementFactory.java:410) at org.hibernate.hql.ast.FromElementFactory.createAndAddFromElement(FromElementFactory.java:388) at org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:79) at org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67) at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:221) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2767) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2656) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:582) at org.hibernate.hql.antlr.HqlSqlBaseWalker.deleteStatement(HqlSqlBaseWalker.java:319) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:186) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:191) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:133) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:86) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:429) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:890) at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:871) at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89) at

    Hibernate JIRA | 1 decade ago | Jessica Marchiori
    java.lang.ClassCastException
  3. 0

    ClassCastException : PortableRemoteObject.

    Oracle Community | 1 decade ago | 403765
    java.lang.ClassCastException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at org.hibernate.hql.ast.FromElementFactory.createFromElement()
    2. Hibernate HQL/JP-QL Parser
      HqlSqlWalker.createFromElement
      1. org.hibernate.hql.ast.FromElementFactory.createFromElement(FromElementFactory.java:410)
      2. org.hibernate.hql.ast.FromElementFactory.createAndAddFromElement(FromElementFactory.java:388)
      3. org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:79)
      4. org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67)
      5. org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:221)
      5 frames
    3. Hibernate
      HqlSqlBaseWalker.statement
      1. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2767)
      2. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2656)
      3. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:582)
      4. org.hibernate.hql.antlr.HqlSqlBaseWalker.deleteStatement(HqlSqlBaseWalker.java:319)
      5. org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:186)
      5 frames
    4. Hibernate HQL/JP-QL Parser
      QueryTranslatorImpl.compile
      1. org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:191)
      2. org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:133)
      3. org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:86)
      3 frames
    5. Hibernate
      QueryImpl.executeUpdate
      1. org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:429)
      2. org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:890)
      3. org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:871)
      4. org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)
      4 frames