Hi folks -
I think I have a similar issue to HB-360, except that using Spring for JTA transaction handling is adding another twist.
Seems like spring is closing the session as expected, but the connection is not closed just yet (as tracing shows) since spring is participating in an existing JTA transaction with weblogic; the session is getting closed during commit, but the connection hasn't been closed before the session is disposed.
I think this is likely a fact of life with weblogic not wanting any closing of the connection.
Any suggestions on how to avoid this wanring? (aside from changing the log level...)
thanks
tyson
here's a log snippet:
Code:
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|executing flush
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|post flush
DEBUG|03:25:13.584|org.springframework.transaction.jta.JtaTransactionManager|Triggering beforeCompletion synchronization
DEBUG|03:25:13.584|org.springframework.transaction.support.TransactionSynchronizationManager|Removed value [org.springfr
amework.orm.hibernate.SessionHolder@1fa0e30] for key [net.sf.hibernate.impl.SessionFactoryImpl@165d26c] from thread [Exe
cuteThread: '9' for queue: 'weblogic.kernel.Default']
DEBUG|03:25:13.584|org.springframework.orm.hibernate.SessionFactoryUtils|Closing Hibernate session
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|closing session
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|disconnecting session
DEBUG|03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|SQL Warning
java.sql.SQLWarning: Warning: execution completed with warning
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:949)
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1035)
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1062)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1988)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1250)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2529)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2857)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:536)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
at com.benefitpoint.cmp.hibernate.AbstractDataManager$2.doInHibernate(AbstractDataManager.java:410)
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:149)
at com.benefitpoint.cmp.hibernate.AbstractDataManager.execRawSqlPreparedStatement(AbstractDataManager.java:435)
at com.benefitpoint.cmp.hibernate.AbstractDataManager.execRawSql(AbstractDataManager.java:352)
at com.benefitpoint.cmp.hibernate.marketing.RequestDataManager.getBrokerRequestDescriptions(RequestDataManager.j
ava:103)
at com.benefitpoint.cmp.marketing.request.RequestController.getAllBrokerRequests(RequestController.java:109)
at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB.getAllRequests(BrokerMarketingMgrEJB.java:130)
at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB_st5fk_EOImpl.getAllRequests(BrokerMarketingMgrEJB_st5fk_
EOImpl.java:154)
at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB_st5fk_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|SQL Warning: 17110, SQLState: null
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|Warning: execution completed with warning