java.lang.NoSuchMethodError: org.hibernate.Session.createQuery(Ljava/lang/String;)Lorg/hibernate/query/Query;

Spring JIRA | Stéphane Nicoll | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    org.hibernate.Session.createQuery(Ljava/lang/String;)Lorg/hibernate/query/Query;

    at org.springframework.orm.hibernate5.HibernateTemplate$38.doInHibernate()
  2. org.springframework.orm
    HibernateTemplate.bulkUpdate
    1. org.springframework.orm.hibernate5.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1103)
    2. org.springframework.orm.hibernate5.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1099)
    3. org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:340)
    4. org.springframework.orm.hibernate5.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:307)
    5. org.springframework.orm.hibernate5.HibernateTemplate.bulkUpdate(HibernateTemplate.java:1099)
    5 frames