Hi Emmanuel,
We are running a web application with JBoss 4.0.4.GA. We are not
using EJBs, just a WAR. Some of the processes in the web application
run for over 5 minutes and depending on the number of users may timeout,
as TransactionTimeout is set to 300 in server/default/conf/jboss-service.xml.
Here's is some of the stack trace after a transaction timeout
org.hibernate.exception.GenericJDBCException: Cannot open connection
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:363)
at
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:122)
.
.
Caused by: org.jboss.util.NestedSQLException: Transaction is not active:
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=abc.local/99, BranchQual=,
localId=99]; - nested throwable: (javax.resource.ResourceException: Transaction
is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=abc.local/99,
BranchQual=, localId=99])
at
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:360)
2006-05-09 12:31:55,769 http-0.0.0.0-8090-4 INFO
am.write(LoggerStream.java:140) - org.hibernate.TransactionException: could not
register synchronization with JTA TransactionManager
at
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:160)
at org.hibernate.jdbc.JDBCContext.(JDBCContext.java:79)
at org.hibernate.impl.SessionImpl.(SessionImpl.java:266)
at
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:436)
at
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:460)
Caused by: javax.transaction.RollbackException: Already marked for rollback
TransactionImpl:XidImpl[FormatId=257, GlobalId=abc.local/99, BranchQual=,
localId=99]
at
org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:617)
at
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:149)
... 33 more
2006-05-09 12:31:55,770 http-0.0.0.0-8090-4 ERROR
tSession(HibernateUtil.java:29) - [HibernateUtil] caught while trying to get
session
org.hibernate.TransactionException: could not register synchronization with JTA
TransactionManager
at
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:160)
at org.hibernate.jdbc.JDBCContext.(JDBCContext.java:79)
at org.hibernate.impl.SessionImpl.(SessionImpl.java:266)
at
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:436)
at
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:460)
at
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:468)
It seems that once a transaction times out we can no longer use the session
factory.
Thanks
Robert
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944932#3944932
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944932
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user