[EJB 3.0] - Re: EJB Timer still active even after the bean is undeployed
by Nouredine13
Hello,
- First I called the method registerTimer ().
- Secondly, I called the method unregisterTimer (), the method fails and the timer is not killed.
- Third, I undeploy my ear, and deploy it again, the portion of log file shows that the timer is still active:
| ...
|
| 2009-03-09 09:39:20,129 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (HDScanner) Bound javax.naming.Reference into JNDI at "NotifyExpirationRemote"
| 2009-03-09 09:39:20,129 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (HDScanner) Bound javax.naming.Reference into JNDI at "NotifyExpiration/remote-com.test.timer.ITimerManagerRemote"
| 2009-03-09 09:39:20,129 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (HDScanner) Bound javax.naming.Reference into JNDI at "NotifyExpiration/local"
| 2009-03-09 09:39:20,129 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (HDScanner) Bound javax.naming.Reference into JNDI at "NotifyExpiration/local-com.test.timer.ITimerManagerLocal"
| 2009-03-09 09:39:20,152 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] (HDScanner) createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@f2938f
| 2009-03-09 09:39:20,183 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (HDScanner) setTimerState: created
| 2009-03-09 09:39:20,187 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (HDScanner) setTimerState: active
| 2009-03-09 09:39:20,190 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) run: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500649851,periode=10000,active]
| 2009-03-09 09:39:20,191 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: in_timeout
| 2009-03-09 09:39:20,206 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (HDScanner) Added component jboss.jacc:id="vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar",service=jacc to vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar
| 2009-03-09 09:39:20,206 DEBUG [org.jboss.system.ServiceCreator] (HDScanner) About to create bean: jboss.jacc:service=jacc,id="vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar" with code: org.jboss.deployment.security.EjbJaccPolicy
| 2009-03-09 09:39:20,212 DEBUG [org.jboss.system.ServiceCreator] (HDScanner) Created mbean: jboss.jacc:service=jacc,id="vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar"
| 2009-03-09 09:39:20,212 DEBUG [org.jboss.system.ServiceController] (HDScanner) Creating service jboss.jacc:service=jacc,id="vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar"
| 2009-03-09 09:39:20,216 DEBUG [org.jboss.system.ServiceController] (HDScanner) starting service jboss.jacc:service=jacc,id="vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar"
| 2009-03-09 09:39:20,218 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (HDScanner) Fully Deployed vfszip:/product/mnfc/jboss/jboss-5.0.0.GA/server/default/deploy/testTimerManager.jar
| 2009-03-09 09:39:20,233 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InterceptorsFactory
| 2009-03-09 09:39:20,238 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 2009-03-09 09:39:20,239 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InterceptorsFactory
| 2009-03-09 09:39:20,239 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 2009-03-09 09:39:20,239 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,241 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,241 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer)
| 2009-03-09 09:39:20,241 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer)
| 2009-03-09 09:39:20,247 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,247 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,247 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.registerTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,247 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.registerTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,251 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,251 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,251 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.unregisterTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,251 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.unregisterTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,255 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,255 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,255 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer)
| 2009-03-09 09:39:20,255 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer)
| 2009-03-09 09:39:20,259 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,259 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,259 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.registerTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,259 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.registerTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,263 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Creating advice InjectInterceptorsFactory
| 2009-03-09 09:39:20,263 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) new InjectInterceptorsFactory
| 2009-03-09 09:39:20,263 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@29708033 on public void com.test.timer.TimerManagerBean.unregisterTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,263 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) applicable interceptors is non-existent for public void com.test.timer.TimerManagerBean.unregisterTimer() throws javax.naming.NamingException
| 2009-03-09 09:39:20,267 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) aroundInvoke [advisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), unadvisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), metadata=null, targetObject=com.test.timer.TimerManagerBean@dea498, arguments=[Ljava.lang.Object;@1a36300]
| 2009-03-09 09:39:20,269 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) TIMER WAKEUP at: 1236587960269
| 2009-03-09 09:39:20,270 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) do something...
| 2009-03-09 09:39:20,271 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Timer was not registered with Tx, resetting state: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500639932,periode=10000,in_timeout]
| 2009-03-09 09:39:20,271 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: active
| 2009-03-09 09:39:30,193 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) run: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500649854,periode=10000,active]
| 2009-03-09 09:39:30,193 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: in_timeout
| 2009-03-09 09:39:30,194 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) aroundInvoke [advisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), unadvisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), metadata=null, targetObject=com.test.timer.TimerManagerBean@dea498, arguments=[Ljava.lang.Object;@17cb2ef]
| 2009-03-09 09:39:30,194 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) TIMER WAKEUP at: 1236587970194
| 2009-03-09 09:39:30,194 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) do something...
| 2009-03-09 09:39:30,194 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Timer was not registered with Tx, resetting state: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500639855,periode=10000,in_timeout]
| 2009-03-09 09:39:30,194 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: active
| 2009-03-09 09:39:40,195 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) run: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500649856,periode=10000,active]
| 2009-03-09 09:39:40,195 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: in_timeout
| 2009-03-09 09:39:40,196 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) aroundInvoke [advisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), unadvisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), metadata=null, targetObject=com.test.timer.TimerManagerBean@dea498, arguments=[Ljava.lang.Object;@1c7876b]
| 2009-03-09 09:39:40,196 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) TIMER WAKEUP at: 1236587980196
| 2009-03-09 09:39:40,196 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) do something...
| 2009-03-09 09:39:40,196 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Timer was not registered with Tx, resetting state: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500639857,periode=10000,in_timeout]
| 2009-03-09 09:39:40,196 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: active
| 2009-03-09 09:39:50,198 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) run: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500649859,periode=10000,active]
| 2009-03-09 09:39:50,198 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: in_timeout
| 2009-03-09 09:39:50,199 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) aroundInvoke [advisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), unadvisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), metadata=null, targetObject=com.test.timer.TimerManagerBean@dea498, arguments=[Ljava.lang.Object;@312a17]
| 2009-03-09 09:39:50,199 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) TIMER WAKEUP at: 1236587990199
| 2009-03-09 09:39:50,199 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) do something...
| 2009-03-09 09:39:50,199 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Timer was not registered with Tx, resetting state: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500639860,periode=10000,in_timeout]
| 2009-03-09 09:39:50,199 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: active
| 2009-03-09 09:39:59,012 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-13) Periodic recovery - first pass <Mon, 9 Mar 2009 09:39:59>
| 2009-03-09 09:39:59,012 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-13) StatusModule: first pass
| 2009-03-09 09:39:59,012 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-13) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
| 2009-03-09 09:39:59,012 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-13) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
| 2009-03-09 09:40:00,200 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) run: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500649861,periode=10000,active]
| 2009-03-09 09:40:00,200 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: in_timeout
| 2009-03-09 09:40:00,201 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) aroundInvoke [advisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), unadvisedMethod=public void com.test.timer.TimerManagerBean.timedOut(javax.ejb.Timer), metadata=null, targetObject=com.test.timer.TimerManagerBean@dea498, arguments=[Ljava.lang.Object;@1c28278]
| 2009-03-09 09:40:00,201 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) TIMER WAKEUP at: 1236588000201
| 2009-03-09 09:40:00,201 DEBUG [EXPIRATION_SERVICE] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) do something...
| 2009-03-09 09:40:00,201 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) Timer was not registered with Tx, resetting state: [id=1236587223906,target=[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3],remaining=-500639862,periode=10000,in_timeout]
| 2009-03-09 09:40:00,201 DEBUG [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-1236587223906[target=jboss.j2ee:jar=testTimerManager.jar,name=NotifyExpiration,service=EJB3]) setTimerState: active
|
if someone has an idea on how to kill the timer?
Thank's a lot.
regard's.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216102#4216102
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216102
15 years, 10 months
[JBossWS] - Error calling external webservice from JBOSS ESB action
by ayan13s
We are facing issues in external web service call from esb action. Our web service client works perfectly when we call it from a standalone java program. But it throws NullPointerException when we try calling it from ESB action. We compared the request being passed to the service and found out the following.
Signature in the request is being sent as a binary security token, but webservice expects subject key identifier.
Our standard-jaxws-client-config.xml has 'Standard WSSecurity Client' config(only) and in our jboss-wsse-client.xml file we have correct configuration() and we are setting it properly in the client using the following code.
URL securityURL = new File("jboss-wsse-client.xml").toURL();
((StubExt)impService).setSecurityConfig(securityURL.toExternalForm());
We are able to call the service successfully from standalone java app using same client. But when we try to invoke it from ESB, security token is being set incorrectly.
Request token reference when calling from jboss esb action -
<wsse:SecurityTokenReference wsu:Id='reference-3-1235384912204-31918910'><wsse:Reference URI='#token-2-1235384912204-24526361' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profil...'/></wsse:SecurityTokenReference>
Request as it should be -
<wsse:SecurityTokenReference wsu:Id='reference-2-1235384016982-12954112'><wsse:KeyIdentifier EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-secu...' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profil...'>IR8MMN/HOdj8ZC2YJWlBgsqYbLo=</wsse:KeyIdentifier></wsse:SecurityTokenReference>
Server side log -
15:51:04,328 ERROR [HandlerChainExecutor] Exception during handler processing
java.lang.NullPointerException
at org.jboss.ws.extensions.security.SecurityStore.validateCertificate(SecurityStore.java:501)
at org.jboss.ws.extensions.security.BinarySecurityTokenValidator.validateToken(BinarySecurityTokenValidator.java:47)
at org.jboss.ws.extensions.security.element.SecurityHeader.(SecurityHeader.java:78)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:175)
Any pointer would be of great help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216099#4216099
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216099
15 years, 10 months
[EJB 3.0] - JPA delete problem on @OneToMany: deleted entity passed to p
by kolumbien81
I'm doing an relationship with two Entity (Parent - Child). So, in
Parent class I had a collection of Child. When I remove one item (child)
from the collection, its appears ok. But in database the operation doesn't
happen. IÃÂÃÂÃÂôd tried to remove by em.remove(child) , but this error occur: "
org.hibernate.ObjectDeletedException: deleted entity passed to persist: [
model.Child#]"
It happens because in the parent I have the CASCADE.PERSIST on the Children Set like this @OneToMany (fetch = EAGER, cascade=CascadeType.ALL)
| public Set<Child> getChildren() so if I remove the CASCADE.PERSIST, leaving it like this:
@OneToMany(cascade={CascadeType.MERGE, CascadeType.REFRESH, CascadeType.REMOVE)
| public Set<Child> getChildren()
It works perfect but when I am going to create the child, it doesn't create the child, so I am feeling like in a dead lock.
Someone can help me?
Thanks a lot
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216097#4216097
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216097
15 years, 10 months