I get this error sometimes on a session scoped component, still haven’t figured out what is causing this to fail. Any ideas?
ERROR [Exceptions] handled and logged exception
javax.el.ELException: org.jboss.seam.core.LockTimeoutException: could not acquire lock on @Synchronized component: importUser
Session scoped components are synchronized by default. That means, Seam takes care that only one request at a time may access such a component. All other requests have to wait until the first is finished. To prevent starvation, the waiting requests have a timeout (see
org.jboss.seam.core.SynchronizationInterceptorfor the corresponding implementation). When the waiting request does not get access to the component until the timeout is reached, theSynchronizationInterceptorthrows aorg.jboss.seam.core.LockTimeoutException.Assuming to requests, A and B, need your
importUsercomponent and A is first. If A takes a long time to finish, B will end in theLockTimeoutException. To find the cause of your issue, try to find out how a request toimportUsermay take longer than the defined timeout.