HibernateException « Transaction « JPA Q&A





1. I am receiving HibernateException "No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here"    stackoverflow.com

Despite the bunch of similar questions here nothing seems to be usefull to me. I get the exception when I call sessionFactory.getCurrentSession().createQuery("from Strings").list(); Here is my root-context.xml:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" ...

2. GORM,get org.hibernate.HibernateException: Found two representations of same collection when open transaction in afterLoad()    stackoverflow.com

class A {
  def afterLoad() {
    A.withTransaction {

    }
  }
}
Most case, it works, until I call below list in controller
A.createCriteria().list{.....}
will throw exception:org.hibernate.HibernateException: Found ...

3. Transaction and Session [HibernateException: createCriteria]    forum.hibernate.org

classpath:/hibernate.cfg.xml ...

4. Hibernate JTA::HibernateException    forum.hibernate.org

Hello Guys, I am trying to do UserTransaction using Hibernate. Whenever I try to do some transaction, I get following exception. Any idea how to solve this problem:- Here is the exception :- Quote: org.hibernate.HibernateException: createCriteria is not valid without active transaction My Codes are like this :- Code: HibernateConfig.xml ...

5. Hibernate JTA::HibernateException    forum.hibernate.org

Hello Guys, I am trying to do UserTransaction using Hibernate. Whenever I try to do some transaction, I get following exception. Any idea how to solve this problem:- Here is the exception :- Quote: org.hibernate.HibernateException: createCriteria is not valid without active transaction My Codes are like this :- Code: HibernateConfig.xml ...

6. no HibernateException on transaction deadlock    forum.hibernate.org

Software: Hibernate 3.1.2, MySQL 5 (MySQLMyISAMDialect), MySQL JDBC 5 I'm trying to get familiar with transaction handling using Hibernate. In particular I'm trying to run the "GenerateDeadlock" example in chapter 9 of "Pro Hibernate3" published by Apress ( www.apress.com has the source code). That example consists of 2 threads each of which is trying to update the same 2 tables, but ...

7. dangling transaction after HibernateException    forum.hibernate.org

8. HibernateException when commitiing a read-only transaction    forum.hibernate.org

Beginner Joined: Thu Jun 21, 2007 9:24 pm Posts: 20 Location: Lansing, Michigan, USA I'm trying to see if I can use Hibernate to access a database for which I already have some tools in perl, PHP and Java with ad-hoc JDBC. I'm getting this error when I read a few mapped objects from a certain table and then commit the ...