10 Replies Latest reply: Aug 10, 2012 9:19 AM by amitsoprna RSS

EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???

Frank Langelage Master
While deploying my ear file on JBoss-6.0.0-SNAPSHOT I get a message like this
21:43:05,477 WARN  [TimerServiceContainer] EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers

110 times.


What does JBoss want to tell me here?

How can I get rid of this warning?

 

It seems that this message is generated for each SessionBean, independent if the SB extends TimedObject or not.

I only have about a dozen TimeObjects.

  • 1. Re: EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    jaikiran pai Master

    Hmm, looks like a new SPI was integrated as part of EJBTHREE-2193. Please ignore that WARN (or update jboss-logging.xml to supress this WARN). I'll upgrade timerservice-mk2 to use this new SPI and do a release either today or tomorrow. I'll update this thread once that's done.

  • 3. Re: EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    Carlo de Wolf Master

    Normally you would never see these warnings as the providing service (in this case timerservice-mk2) would be refactored. This time however I had to cut off for the release of Application Server 6 CR1. So you'll see a warning that ejb3-core does a failover to the old SPI.

  • 4. EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    Sarang Anajwala Newbie

    Is this issue still open?

    I am getting following error while trying to deploy EJB Timer in JBossAS6.0.0.Final. The timers are working in JBoss4.2.2.GA.

    Any pointers? Tried searching forums and found that this issue was occuring in older version and is resolved in 6.0.0.Final version. "com.mycompany.ce.dm.timerservice.TimerSrvc" is my TimerService EJB implemetation whcih works fine in 4.2.2. Are some specific chanegs required for migration from 4.2.2 to 6.0.0?

     

    16:43:26,716 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

    16:43:28,076 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=MyProjApplicationEAR.ear,jar=MyProjDMService.jar,name=TimerSrvcEJB,service=EJB3 state=Create: java.lang.RuntimeException: Could not deserialize info in timer

        at org.jboss.ejb3.timerservice.mk2.TimerImpl.deserialize(TimerImpl.java:724) [:1.0.0-alpha-13]

        at org.jboss.ejb3.timerservice.mk2.TimerImpl.<init>(TimerImpl.java:185) [:1.0.0-alpha-13]

        at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.getActiveTimers(TimerServiceImpl.java:1002) [:1.0.0-alpha-13]

        at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.restoreTimers(TimerServiceImpl.java:738) [:1.0.0-alpha-13]

        at org.jboss.ejb3.timerservice.mk2.TimerServiceFactoryImpl.restoreTimerService(TimerServiceFactoryImpl.java:123) [:1.0.0-alpha-13]

        at org.jboss.ejb3.TimerServiceContainer.restoreTimerService(TimerServiceContainer.java:244) [:1.7.17]

        at org.jboss.ejb3.TimerServiceContainer.afterStart(TimerServiceContainer.java:129) [:1.7.17]

        at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:1113) [:1.7.17]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]

        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]

        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]

        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]

        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]

        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]

        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

        at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

        at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

        at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

        at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

        at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

        at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

        at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

        at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

        at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]

        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

        at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

        at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

        at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

    Caused by: java.lang.ClassNotFoundException: com.mycompany.ce.dm.timerservice.TimerSrvc

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_20]

        at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_20]

        at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [:1.6.0_20]

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [:1.6.0_20]

        at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_20]

        at java.lang.Class.forName0(Native Method) [:1.6.0_20]

        at java.lang.Class.forName(Class.java:247) [:1.6.0_20]

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:284) [jboss-classloader.jar:2.2.0.GA]

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]

        at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]

        at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_20]

        at java.lang.Class.forName0(Native Method) [:1.6.0_20]

        at java.lang.Class.forName(Class.java:247) [:1.6.0_20]

        at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:676) [:1.6.0_20]

        at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531) [:1.6.0_20]

        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493) [:1.6.0_20]

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_20]

        at java.util.HashMap.readObject(HashMap.java:1030) [:1.6.0_20]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]

        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]

        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) [:1.6.0_20]

        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) [:1.6.0_20]

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [:1.6.0_20]

        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [:1.6.0_20]

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [:1.6.0_20]

        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [:1.6.0_20]

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_20]

        at org.jboss.ejb3.timerservice.mk2.TimerImpl.deserialize(TimerImpl.java:716) [:1.0.0-alpha-13]

        ... 82 more

  • 5. EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    Frank Langelage Master

    Your problem is not related to this as far as I can see.

    My question was about warnings on startup and deployment. These warnings are still there in 6.1.0.SNAPSHOT.

     

    Your problem is

    Caused by: java.lang.ClassNotFoundException: com.mycompany.ce.dm.timerservice.TimerSrvc

     

    Is this class part of your deployment unit?

    ...

  • 6. EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    jaikiran pai Master

    Sarang,

     

    You have now asked this same question in multiple (unrelated) threads. I already replied to your original thread here http://community.jboss.org/thread/164064?tstart=0. Please continue further discussion in that thread.

  • 7. EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    jaikiran pai Master

    Frank Langelage wrote:

     

     

    My question was about warnings on startup and deployment. These warnings are still there in 6.1.0.SNAPSHOT.

    Yeah, I understand those are a bit annoying. We'll make sure they get fixed for 6.1.0.

  • 8. EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    Sarang Anajwala Newbie

    Hi Frank,

    Apologies for the misleading post.

    I tried debugging the source and I think this warning is related to the issue I am facing. Precisely the deprected API does not take classloader which might be loading the application classes.

    My class com.mycompany.ce.dm.timerservice.TimerSrvc is part of the deployment unit.

     

    Jaikiran,

    I have posted reply on above mentioned thread and we can continue the discussion there.

    I just wanted to confirm here if this warning that I was seeing was still around.

     

    Thanks for your inputs.

     

    Regards,

    Sarang

  • 9. Re: EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    miragpl Newbie

    Hi All,

     

    I'm using jboss 6.1 Final  and the warning still exists. Is it going to be fixed or should I just supress in jboss-logging?

  • 10. Re: EJBHREE-2193: using deprecated TimerServiceFactory for restoring timers???
    amitsoprna Newbie

    Hi All,

     

    How to supress it using jboss-logging as it is still coming in JBOSS6.1 final?

     

    Thanks