java.lang.ClassCastException: org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

Spring JIRA | Vadim Marchenko | 1 year ago
  1. 0

    Grails 3.2 and vaadin plugin

    GitHub | 3 months ago | kiteflo
    java.lang.ClassCastException: org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 1#245203653

    GitHub | 3 months ago | stephangrundner
    java.lang.ClassCastException: org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder
  4. 0

    Spring 4 + Hibernate 5 = org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

    Stack Overflow | 4 months ago | Midas
    java.lang.ClassCastException: org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

    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

      org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

      at org.springframework.orm.hibernate5.HibernateTemplate.prepareQuery()
    2. org.springframework.orm
      HibernateTemplate$CloseSuppressingInvocationHandler.invoke
      1. org.springframework.orm.hibernate5.HibernateTemplate.prepareQuery(HibernateTemplate.java:1154)[spring-orm-4.2.1.BUILD-SNAPSHOT.jar:4.2.1.BUILD-SNAPSHOT]
      2. org.springframework.orm.hibernate5.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1247)[spring-orm-4.2.1.BUILD-SNAPSHOT.jar:4.2.1.BUILD-SNAPSHOT]
      2 frames
    3. com.sun.proxy
      $Proxy102.createQuery
      1. com.sun.proxy.$Proxy102.createQuery(Unknown Source)[na:na]
      1 frame
    4. com.eedgesoft.dao
      RSSJobFactory$1.doInHibernate
      1. com.eedgesoft.dao.model.conf.jobs.feed.RSSJobFactory$1.doInHibernate(RSSJobFactory.java:37)[classes/:na]
      2. com.eedgesoft.dao.model.conf.jobs.feed.RSSJobFactory$1.doInHibernate(RSSJobFactory.java:1)[classes/:na]
      2 frames
    5. org.springframework.orm
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:341)[spring-orm-4.2.1.BUILD-SNAPSHOT.jar:4.2.1.BUILD-SNAPSHOT]
      2. org.springframework.orm.hibernate5.HibernateTemplate.execute(HibernateTemplate.java:296)[spring-orm-4.2.1.BUILD-SNAPSHOT.jar:4.2.1.BUILD-SNAPSHOT]
      2 frames