active « Transaction « JPA Q&A





1. Hibernate active transaction    stackoverflow.com

In my service class I would like to have something like:

class ClientService {

  // Authorize
  // Returns true: Authorization successful
  // Returns false: Authorization failed
  public boolean ...

2. Drools flow persistence - No active JTA transaction on joinTransaction call    stackoverflow.com

I've been trying to configure persistence to work with drools flow on JBOSS 6.0.0.Final by following the documentation Drools-Flow-Persistence but I keep getting a exception as below (although hibernate ...

3. hibernate transaction, commit not valid without active transaction    stackoverflow.com

first of all, sorry if my english is so bad, i am new in using hibernate so there is some question that i want to ask to all of senior. here is ...

4. EntityTransaction never rollsback, throws exception saying Transaction is not active    stackoverflow.com

I am working on a standalone application of java using JPA for object persistence and the provider is Hibernate. Now when i persist an entity and call commit() of EntityTransaction, entity ...

5. createCriteria is not valid without active transaction    forum.hibernate.org

i have problem in my Spring hibernate application. when i try to create Criteria object using hibernate session it give me errors as createCriteria is not valid without active transaction at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297) at $Proxy0.createCriteria(Unknown Source) in my Dispatcher -Servlet.xml file i have ...

8. The transaction is no longer active - 'Marked rollback.'    forum.hibernate.org

Hi, Is there anyone out there that faced similar problem, it happened Weblogic EJB environment, the error was thrown when you try to perform - any hibernate transaction that query of update db - if it happened that it failed, because of e.g. duplicate key transaction, it throws an exception, and context.setRollbackOnly() is set. - Traced the error thrown when calling ...

9. The transaction is no longer active 'Marked rollback'    forum.hibernate.org

Hi, Is there anyone out there that faced similar problem, it happened Weblogic EJB environment, the error was thrown when you try to perform - any hibernate transaction that query of update db - if it happened that it failed, because of e.g. duplicate key transaction, it throws an exception, and context.setRollbackOnly() is set. - Traced the error thrown when calling ...





10. Does my Session object have an active transaction?    forum.hibernate.org

Given a Hibernate Session, how can I determine if session.beginTransaction() has been called? Ultimately I would find it handy if there were a session.isInTransaction() method, but I can't find any way to get this information in the Session interface or in the SessionImpl interface, nor do I see any way to this information through an Interceptor. As an aside, if beginTransaction ...

11. non comm/roll transactions are left active if session closes    forum.hibernate.org

hibernate 3.1b1 mysql 4.1 connector 3.1.10 If I have an opened transaction in a session, but I do not commit or rollback, when I close the session it leaves my non-(commited/rolledback) transaction wide open! mysql shows it as an active transaction!!!! shouldnt hibernate try at least commit or rollback if I try to close a session with active transactions? is it ...

12. Error "save is not valid without active transaction&quo    forum.hibernate.org

Newbie Joined: Sat Jan 28, 2006 1:49 pm Posts: 3 Hibernate version 3.1, Dec 12, 2005 Java version "1.4.2_10" App Server JRUN 4.0 I have an EJB with method in it and a DAO with 1 method also. When the DAO calls session.save() it throws an exception "save is not valid without active transaction" (stacktrace further down). 1) Hibernate initialized using ...

13. I am getting "Transaction is no longer active" exc    forum.hibernate.org

Newbie Joined: Tue Feb 07, 2006 1:32 pm Posts: 7 Location: Toronto, Ontario Hi, I have an SWLException during a transaction. As soon as I reset the connections (from the connection pool) in Weblogic console everything gets back to normal and I don't get this exception anymore. I saw this exception reported in Hibernate JIRA but was reported fixed in version ...

14. cancelQuery is not valid without active transaction    forum.hibernate.org

Hi all, I am trying to implement the cancellation of the query using hibernate. Here is the scenario. 1) user gives a request from the web page for execution of a query. 2) after 10 secs he cancels that query. When i implemented the session.cancelQuery() I get the above stated message. Here is the code snippet to cancel the query I ...

15. load is not valid without active transaction    forum.hibernate.org

Newbie Joined: Wed Jan 10, 2007 1:30 pm Posts: 3 Hi, I have been trying to get JTA working with jrun4 using the following configs. it seems that the way I am creating my session has nothing to do with my transactions. Hence the problems shown. My guess is that I am creating them in two different ways. E.G on the ...

16. Hibernate transaction is not active,but no exception    forum.hibernate.org

Hey, Using in hibernate 3.3. Working with JBoss server4.2 Background: I have a DAO(stateless bean- transaction required) and in the DAO i call to entitymanager.makeTransient(obj) i have an observer mechanism that use the database to register subscribers. I have a registration table and when object is register as a subscriber i register it in the registration table. There is no FK ...





17. get is not valid without active transaction    forum.hibernate.org

# I'm guessing that all session operations that access the DB must be part of a transaction? The persist makes sense, but why the get? Indeed. This is always true, but sometimes JDBC connectors hide this reality from us. A transaction is very appropriately defined as a "unit of work." If going to a database and getting data isn't a unit ...

19. persist is not valid without active transaction Error    forum.hibernate.org

Newbie Joined: Tue Aug 04, 2009 1:02 am Posts: 2 Hello all, I am trying to do a simple persist operation using hibernate and Mysql but getting the error 'org.hibernate.HibernateException: persist is not valid without active transaction'. I have the persist operation enclosed within a transaction. This is the test class: Code: public class HibernateTester { public static ...

20. persist is not valid without active transaction Error    forum.hibernate.org

Newbie Joined: Tue Aug 04, 2009 1:02 am Posts: 2 Hello all, I am trying to do a simple persist operation using hibernate and Mysql but getting the error 'org.hibernate.HibernateException: persist is not valid without active transaction'. I have the persist operation enclosed within a transaction. This is the test class: Code: public class HibernateTester { public static ...

21. java.lang.IllegalStateException: Transaction not active    forum.hibernate.org

Newbie Joined: Wed Sep 30, 2009 6:55 am Posts: 1 Hey i have a problem connection pooling. Tech: hibernate 3.3 with seam- entityManager this is our default conf. for connection pooling (persistance-dev.xml)