[JBoss Seam] - exception during destroy of stateful bean then @SecurityDoma
by ramazanyich
With seam 1.0 we have an issue dueing destroying of bean.
Stateful bean is defined as
@Stateful
@SerializedConcurrentAccess
@Scope(ScopeType.SESSION)
@Name("studioAuditTracking")
@Interceptors(SeamInterceptor.class)
@SecurityDomain("OurDomain")
public class StudioAuditTrackingBean implements Serializable, StudioAuditTracking
It works perfect, but during destroy there is an error. And log files full of such errors.
I tried to set idleTimeoutSeconds to the same value like in web session timeout following WIKI, but still the same issue.
It seems that security principal is not propagated during destroy.
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) javax.ejb.EJBAccessException: Authentication failure
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:68)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:71)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at $Proxy290.stop(Unknown Source)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at java.lang.reflect.Method.invoke(Method.java:585)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:211)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:195)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at java.lang.Thread.run(Thread.java:595)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) Caused by: javax.security.auth.login.LoginException: No principalName returned by NameCallback.
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at be.certipost.am.utils.loginmodule.AMBasedLoginModule.login(AMBasedLoginModule.java:96)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at java.lang.reflect.Method.invoke(Method.java:585)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at java.security.AccessController.doPrivileged(Native Method)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aspects.security.AuthenticationInterceptor.authenticate(AuthenticationInterceptor.java:121)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:67)
2007-01-03 15:00:31,790 ERROR [STDERR] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) ... 28 more
2007-01-03 15:00:31,790 WARN [org.jboss.seam.contexts.Contexts] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]:) Could not destroy component: studioAuditTracking
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997560#3997560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997560
19 years, 3 months
[JBoss jBPM] - Re: Exception on scheduler launch
by cpob
Your big problem is that it can't find the timers from the database.
14:29:08,137 ERROR [SchedulerSession] org.hibernate.MappingException: Named query not known: SchedulerSession.findTimersByDueDate
| 14:29:08,137 INFO [SchedulerThread] runtime exception while executing timers
| org.jbpm.JbpmException: couldn't find timers from the database
| at org.jbpm.db.SchedulerSession.findTimersByDueDate(SchedulerSession.java:88)
| at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:106)
| at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
| Caused by: org.hibernate.MappingException: Named query not known: SchedulerSession.findTimersByDueDate
| at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)
| at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
| at org.jbpm.db.SchedulerSession.findTimersByDueDate(SchedulerSession.java:82)
| ... 2 more
Do you have all of the jBPM hbm.xml mappings in your project?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997545#3997545
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997545
19 years, 3 months