users@glassfish.java.net

[gf-users] Re: EJB Timer Service is not available

From: Bhuvan Gupta <bhuvangu_at_gmail.com>
Date: Sat, 12 Apr 2014 13:08:07 +0530

My story:
We got the same error while upgrading from 2.1 to 3.1

the upgrade always went fine of test, dev, production replica.
But when we did it on production we got the same error " EJB Timer Service
is not available".
[1] We tried un-deploying and deploying of application again.
[2] removing and creating the domain again.
[3] deleting the generated folder in glassfish.
But all resulted in same error.

We finally have to remove glassfish3 folder and install a fresh glassfish
and deploy the application again.

It will be good if someone can confirm if this is a bug or something else.

Thanks
Bhuvan



On Sat, Apr 12, 2014 at 8:43 AM, Doniyor Ulmasov <doniyor_at_live.com> wrote:

> Hi I have been trying to implement TimerService feature, but which I have
> successfully done on GlassFish 3.1 ,but when I updated to GlassFish 4 I
> started getting an exception EJB Timer Service is not available. I looked
> online and tried all possible solutions (deleting logs, deleting marks,
> etc..) None of them worked. I thought it is probably something wrong with
> my code, so I downloaded a sample TimeService from the Java 7
> documentation, it too failed to deploy. At this point I thought the problem
> runs in my machine, so I took my second laptop which didn't even have JDK
> on it, installed everything fresh, which resulted in exactly same problem
> during deployment. I am using JavaDB and only on one machine, @Timeout
> annonation is the causing the exception, because if uncomment it, it is the
> one causing deployment error.
>
> I tried just pinging the connection pools through the admin console. It
> fails to ping __TimerPool and SamplePool , all others are working fine.
>
> Is this GlassFish bug? or am I doing something wrong?
>
>
> Machine: Dell XPS15
> OS: Windows 8.1 with Spring Update 64bit
> Netbeans 8.0
>
>
>
>
>
> WARNING: No Principals mapped to Role [admin].
> WARNING: No Principals mapped to Role [user].
> SEVERE: Exception while invoking class
> org.glassfish.ejb.startup.EjbApplication start method
> java.lang.RuntimeException: EJB Timer Service is not available
> at
> com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
> at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:356)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
> at
> org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
> at java.lang.Thread.run(Thread.java:744)
>
> SEVERE: Exception during lifecycle processing
> java.lang.RuntimeException: EJB Timer Service is not available
> at
> com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
> at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:356)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
> at
> org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
> at java.lang.Thread.run(Thread.java:744)
>
> SEVERE: Exception while loading the app
> SEVERE: Undeployment failed for context /NN3
> SEVERE: The web application [unknown] created a ThreadLocal with key of
> type [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1] (value
> [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1_at_570a4718])
> and a value of type [org.glassfish.web.loader.WebappClassLoader] (value
> [WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)]) but
> failed to remove it when the web application was stopped. Threads are going
> to be renewed over time to try and avoid a probable memory leak.
> WARNING: EJB Timer Service is not available. Timers for application with
> id 91571536166453248 will not be deleted
> INFO:
> file:/C:/Users/Doniyor/Documents/NetBeansProjects/NN3/build/web/WEB-INF/classes/_NN3PU
> logout successful
> SEVERE: Exception while loading the app : EJB Timer Service is not
> available
>
>
>
>
>
>
> Regards,
> Doniyor
>