[jboss-user] [JBoss/Spring Integration] - Re: Use of Deployed Spring Beans directly on webapp

svelascob do-not-reply at jboss.com
Mon Sep 25 15:28:28 EDT 2006


Hi All,

I turned on debugging on some of the hibernate transaction and I could capture this information, jist in case is util to resolve this issue:

2006-09-25 14:43:33,820 DEBUG [org.springframework.web.jsf.DelegatingVariableResolver] Attempting to resolve variable 'userBean' in via original VariableResolver
2006-09-25 14:43:33,820 DEBUG [com.sun.faces.el.VariableResolverImpl] resolveVariable: Resolved variable:com.shsolutions.segment.view.bean.UserBean at dc4414
2006-09-25 14:43:33,820 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue Result:com.shsolutions.segment.view.bean.UserBean at dc4414
2006-09-25 14:43:33,836 DEBUG [org.springframework.transaction.interceptor.TransactionInterceptor] Getting transaction for com.shsolutions.segment.facades.UserImpl.getUser
2006-09-25 14:43:33,836 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Using transaction object [org.springframework.transaction.jta.JtaTransactionObject at 1026e40]
2006-09-25 14:43:33,851 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Initializing transaction synchronization
2006-09-25 14:43:33,883 DEBUG [org.springframework.orm.hibernate3.SessionFactoryUtils] Opening Hibernate Session
2006-09-25 14:43:33,976 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
2006-09-25 14:43:33,976 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 11592098138
2006-09-25 14:43:33,976 DEBUG [org.springframework.orm.hibernate3.SessionFactoryUtils] Closing Hibernate Session
2006-09-25 14:43:33,976 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] Applying rules to determine whether transaction should rollback on java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
2006-09-25 14:43:33,976 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] Winning rollback rule is: null
2006-09-25 14:43:33,976 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] No relevant rollback rule found: applying superclass default
2006-09-25 14:43:33,976 DEBUG [org.springframework.transaction.interceptor.TransactionInterceptor] Invoking rollback for transaction on com.shsolutions.segment.facades.UserImpl.getUser due to throwable [java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here]
2006-09-25 14:43:33,976 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Triggering beforeCompletion synchronization
2006-09-25 14:43:33,992 WARN  [org.springframework.transaction.jta.JtaTransactionManager] Should roll back transaction but cannot - no transaction available
2006-09-25 14:43:33,992 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Triggering afterCompletion synchronization
2006-09-25 14:43:33,992 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Clearing transaction synchronization
2006-09-25 14:43:33,992 ERROR [com.shsolutions.segment.view.bean.UserBean] Could not log in user. Internal Error.
java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
	at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:358)
	at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:190)

best regards

Salvador

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973986#3973986

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973986



More information about the jboss-user mailing list