AnsweredAssumed Answered

ehCache error on shutdown

Question asked by bcoulson on Apr 5, 2011
Latest reply on Dec 8, 2011 by sfa
All

When I shutdown Alfresco, it takes a looooong time - so much so that I always get a dialog box from the Services application that it took too long to shutdown. However, I have now noticed that there are a bunch of error messages in my log file which probably explains the problem with shutdown. Any advice on what is causing the problem would be greatly appreciated.  It seems as if this is a problem with Spring - I saw a fix for a related issue on a Spring forum but the fix did not seem applicable here.


15:57:42,800 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean#40d611 threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor] failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 03050000 Failed to get from EhCache as state invalid:
  state: STATUS_SHUTDOWN
   key:
   at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
   at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 03050000 Failed to get from EhCache as state invalid:
  state: STATUS_SHUTDOWN
   key:
   at org.alfresco.repo.cache.EhCacheAdapter.get(EhCacheAdapter.java:93)
   at org.alfresco.repo.cache.TransactionalCache.getSharedCacheValue(TransactionalCache.java:260)
   at org.alfresco.repo.cache.TransactionalCache.get(TransactionalCache.java:326)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:417)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:557)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:546)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:241)
   at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:64)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.matchURI(LuceneQueryParser.java:3055)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.expandQName(LuceneQueryParser.java:3038)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.matchPropertyDefinition(LuceneQueryParser.java:617)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.attributeQueryBuilder(LuceneQueryParser.java:3538)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:885)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:485)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:411)
   at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1459)
   at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211)
   at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139)
   at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128)
   at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170)
   at org.alfresco.repo.search.impl.lucene.LuceneQueryParser.parse(LuceneQueryParser.java:308)
   at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:287)
   at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:241)
   at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:67)
   at org.alfresco.repo.search.AbstractSearcherComponent.query(AbstractSearcherComponent.java:53)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor$1$1.execute(FeedbackProcessor.java:88)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor$1.doWork(FeedbackProcessor.java:82)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor.run(FeedbackProcessor.java:77)
   at sun.reflect.GeneratedMethodAccessor430.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
   at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
   … 3 more
Caused by: java.lang.IllegalStateException: The org.alfresco.cache.prefixesCache Cache is not alive.
   at net.sf.ehcache.Cache.checkStatus(Cache.java:2282)
   at net.sf.ehcache.Cache.get(Cache.java:1325)
   at net.sf.ehcache.Cache.get(Cache.java:1306)
   at org.alfresco.repo.cache.EhCacheAdapter.get(EhCacheAdapter.java:81)
   … 38 more
15:57:43,066 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
15:57:43,113 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
15:57:43,144 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean#40d611 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 org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor] failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 03050000 Failed to get from EhCache as state invalid:
  state: STATUS_SHUTDOWN
   key: ]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor] failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 03050000 Failed to get from EhCache as state invalid:
  state: STATUS_SHUTDOWN
   key:

Any help or insight that could be provided would be greatly appreciated.

Outcomes