This content has been marked as final.
Show 3 replies
-
1. Re: entityManager is sometimes null
jeanluc Feb 1, 2011 2:40 PM (in response to zenig.szimmerman.sunshineradiology.com)Any other error in the log that would have prevented the entityManager to be injected (such as the transaction being already marked for rollback?).
Check if the size of the db connection pool is enough.
Load test the app, perhaps you'll be able to reproduce it.
-
2. Re: entityManager is sometimes null
zenig.szimmerman.sunshineradiology.com Feb 1, 2011 3:58 PM (in response to zenig.szimmerman.sunshineradiology.com)Looking in the logs, I found some more details higher up:
[#|2011-02-01T14:57:31.187-0500|WARNING|sun-appserver2.1|org.jboss.seam.jsf.SeamPhaseListener|_ThreadID=18;_ThreadName=httpSSLWorkerThread-443-3;_RequestID=e8a834a6-db60-4cd5-8373-b5772ea9eeb8;|uncaught exception, passing to exception handler org.jboss.seam.ConcurrentRequestTimeoutException: Concurrent call to conversation
[#|2011-02-01T14:57:31.218-0500|SEVERE|sun-appserver2.1|org.jboss.seam.jsf.SeamPhaseListener|_ThreadID=18;_ThreadName=httpSSLWorkerThread-443-3;_RequestID=e8a834a6-db60-4cd5-8373-b5772ea9eeb8;|swallowing exception org.jboss.seam.ConcurrentRequestTimeoutException: Concurrent call to conversation
[#|2011-02-01T14:57:31.218-0500|WARNING|sun-appserver2.1|org.jboss.seam.Component|_ThreadID=18;_ThreadName=httpSSLWorkerThread-443-3;_RequestID=e8a834a6-db60-4cd5-8373-b5772ea9eeb8;| Cannot create Seam component, scope is not active: entityManager(CONVERSATION)|#]
After further research, I used an eventsQueue on the rich:tab tag and it appears to have resolved the issue! I am not sure the actual reason of the cuncurrenty. Is it a good habit to queue all ajax requests?
Thanks. Shawn
-
3. Re: entityManager is sometimes null
jeanluc Feb 1, 2011 5:52 PM (in response to zenig.szimmerman.sunshineradiology.com)
Shawn Zimmerman wrote on Feb 01, 2011 15:58:
After further research, I used an eventsQueue on the rich:tab tag and it appears to have resolved the issue! I am not sure the actual reason of the cuncurrenty. Is it a good habit to queue all ajax requests?Yeah, search the forum about concurrent calls to conversation errors. I find this a serious design flaw.