Task #1074 (new)
Opened 16 years ago
Last modified 15 years ago
Ctrl-C shutdown of server can lead to an error in SessionCache
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | Unscheduled |
Component: | Services | Version: | 3.0-M1 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
13:25:19,777 ERROR [JobRunShell] Job DEFAULT.fullTextThreadRun threw an unhandled Exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class ome.services.fulltext.FullTextThread] failed; nested exception is java.lang.IllegalStateException: The SessionCache Cache is not alive. at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: java.lang.IllegalStateException: The SessionCache Cache is not alive. at net.sf.ehcache.Cache.checkStatus(Cache.java:1201) at net.sf.ehcache.Cache.getQuiet(Cache.java:699) at net.sf.ehcache.Cache.getQuiet(Cache.java:683) at ome.services.sessions.state.SessionCache.getSessionContext(SessionCache.java:153) at ome.services.sessions.SessionManagerImpl.getEventContext(SessionManagerImpl.java:473) at ome.services.util.ExecutionThread.sessionInit(ExecutionThread.java:73) at ome.services.util.ExecutionThread.run(ExecutionThread.java:57) at sun.reflect.GeneratedMethodAccessor390.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260) ... 3 more 13:25:19,789 ERROR [ErrorLogger] Job (DEFAULT.fullTextThreadRun threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class ome.services.fulltext.FullTextThread] failed; nested exception is java.lang.IllegalStateException: The SessionCache Cache is not alive.] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class ome.services.fulltext.FullTextThread] failed; nested exception is java.lang.IllegalStateException: The SessionCache Cache is not alive. at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: java.lang.IllegalStateException: The SessionCache Cache is not alive. at net.sf.ehcache.Cache.checkStatus(Cache.java:1201) at net.sf.ehcache.Cache.getQuiet(Cache.java:699) at net.sf.ehcache.Cache.getQuiet(Cache.java:683) at ome.services.sessions.state.SessionCache.getSessionContext(SessionCache.java:153) at ome.services.sessions.SessionManagerImpl.getEventContext(SessionManagerImpl.java:473) at ome.services.util.ExecutionThread.sessionInit(ExecutionThread.java:73) at ome.services.util.ExecutionThread.run(ExecutionThread.java:57) at sun.reflect.GeneratedMethodAccessor390.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260) ... 3 more 13:25:21,998 INFO [HypersonicDatabase] Database standalone closed clean 13:25:22,044 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down. 13:25:22,044 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused. 13:25:22,046 INFO [SimpleThreadPool] There are still 45 worker threads active. See javadoc runInThread(Runnable) for a possible explanation 13:25:22,047 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete. 13:25:22,136 INFO [MailService] Mail service 'java:/Mail' removed from JNDI 13:25:22,158 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/ 13:25:22,391 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080 13:25:22,393 INFO [AjpProtocol] Pausing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009 13:25:23,393 INFO [StandardService] Stopping service jboss.web 13:25:23,477 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080 13:25:23,480 INFO [AjpProtocol] Stopping Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009 13:25:23,487 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/ 13:25:23,492 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/ 13:25:23,497 INFO [TomcatDeployer] undeploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/ 13:25:23,502 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ 13:25:24,252 INFO [TransactionManagerService] Stopping recovery manager 13:25:24,378 INFO [Server] Shutdown complete Shutdown complete Halting VM
Change History (2)
comment:1 Changed 16 years ago by jmoore
comment:2 Changed 15 years ago by jmoore
- Milestone changed from OMERO-Beta4 to Cleanup
- Summary changed from Ctrl-C shutdown of JBoss can lead to an error in SessionCache to Ctrl-C shutdown of server can lead to an error in SessionCache
Renaming post OmeroBlitz migration (#1106).
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
The most appropriate solution to this is probably to push a "stop" flag into FullTextThread (and other similar Thread classes) and then into the FullTextIndexer.