[jboss-user] [EJB 3.0] New message: "DB Connection NON restore"
Massimo Amato
do-not-reply at jboss.com
Thu Feb 4 06:25:17 EST 2010
User development,
A new message was posted in the thread "DB Connection NON restore":
http://community.jboss.org/message/524130#524130
Author : Massimo Amato
Profile : http://community.jboss.org/people/mamato
Message:
--------------------------------------------------------------
Hi,
I've an EJB3 application running on JBOSS 5.1
A thread, every second, looks uf for my stateless session bean and invokes a method
This method executes a query...
If, when the system is up an running, the DB crashes and goes up again, my application seems to be unable to restore the connection.
Is it normal ?
Any idea ?
2010-02-03 23:22:09,291 ERROR [it.mamato.ce.ejb.send.SenderTask] (Thread-1779) Exception javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
2010-02-03 23:22:10,291 WARN [org.hibernate.util.JDBCExceptionReporter] (Thread-1779) SQL Error: 0, SQLState: null
2010-02-03 23:22:10,291 ERROR [org.hibernate.util.JDBCExceptionReporter] (Thread-1779) La connessione è chiusa.
2010-02-03 23:22:10,291 ERROR [org.hibernate.ejb.AbstractEntityManagerImpl] (Thread-1779) Unable to mark for rollback on PersistenceException:
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] No such transaction!
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.setRollbackOnly(BaseTransaction.java:191)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:123)
at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:421)
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:576)
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
....
Thanks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524130#524130
More information about the jboss-user
mailing list