Hi all,
I'm stuck.
I got:
- hibernate 2.1.2
- jboss 3.2.3
- java
--%<-------------
java version "1.4.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)
---%<-------------
For a while my app runs just fine , but then out of the sudden:
Code:
2004-03-26 15:47:11,179 DEBUG [webwork.util.ServletValueStack] findValue() for: query="'/images/platform/logo_hddbi.gif'" {[id="/images/platform/l
2004-03-26 15:47:11,180 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2004-03-26 15:47:11,180 DEBUG [net.sf.hibernate.transaction.JTATransaction] Looking for UserTransaction under: UserTransaction
2004-03-26 15:47:11,180 DEBUG [net.sf.hibernate.transaction.JTATransaction] Obtained UserTransaction
2004-03-26 15:47:11,180 ERROR [net.sf.hibernate.transaction.JTATransaction] Could not register Synchronization
javax.transaction.RollbackException: Already marked for rollback
at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:689)
at net.sf.hibernate.transaction.JTATransaction.begin(JTATransaction.java:169)
at net.sf.hibernate.transaction.JTATransactionFactory.beginTransaction(JTATransactionFactory.java:58)
at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2195)
at com.infodesire.infobit.hibernate.ThreadLocalSessionProvider.getSession(ThreadLocalSessionProvider.java:40)
at com.infodesire.infobit.InfobitPool.flush(InfobitPool.java:198)
at com.infodesire.infobit.filter.InfobitFilter.doFilter(InfobitFilter.java:131)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:123)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.infodesire.webgui.filter.PortalFilter.doFilter(PortalFilter.java:203)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.nanocontainer.servlet.ServletRequestContainerFilter.doFilter(ServletRequestContainerFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
In my ThreadLocalSessionProvider I do following:
Code:
public Session getSession() throws HibernateException {
Session sess = (Session) _session.get();
if (sess == null) {
sess = getFactory().openSession();
Transaction tr = sess.beginTransaction();
_session.set(sess);
_transaction.set(tr);
if (_log.isDebugEnabled()) {
_log.debug("created session and started new transaction");
}
}
return sess;
}
(_session is thread local, ind it was not there yet, so I
could not have done something criminal, or could I ? )
Funny thing is that I was unable to forrce this error on
---%<-------------
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
---%<-------------
anybody seen something similar? any clues?
tia