Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-18877

Alfresco doesn't bootstrap if 'system.cache.disableMutableSharedCaches' is set to true

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.8
    • Fix Version/s: 5.2.5, 6.0.1
    • Component/s: Repository
    • Labels:
      None
    • Bug Priority:
      Category 2
    • ACT Numbers:

      00943847

      Description

      Following the instructions given in http://docs.alfresco.com/4.2/tasks/hot-reindex.html, when setting the property 'system.cache.disableMutableSharedCaches' to true Alfresco doesn't bootstrap.

      Without SPP module installed:

      2017-11-28 15:45:48,056 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
      org.alfresco.error.AlfrescoRuntimeException: 10280016 Failed to re-initialise loadedResourceBundlesCache
              at org.alfresco.repo.i18n.MessageServiceImpl.getLoadedResourceBundles(MessageServiceImpl.java:704)
              at org.alfresco.repo.i18n.MessageServiceImpl.getLocaleProperties(MessageServiceImpl.java:404)
              at org.alfresco.repo.i18n.MessageServiceImpl.getMessage(MessageServiceImpl.java:224)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
              at com.sun.proxy.$Proxy12.getMessage(Unknown Source)
              at org.alfresco.repo.dictionary.DictionaryComponent.getMessage(DictionaryComponent.java:485)
              at org.alfresco.repo.dictionary.M2Label.getLabel(M2Label.java:65)
              at org.alfresco.repo.dictionary.M2Label.getLabel(M2Label.java:79)
              at org.alfresco.repo.dictionary.M2TypeDefinition.getTitle(M2TypeDefinition.java:62)
              at org.alfresco.cmis.dictionary.CMISFolderTypeDefinition.<init>(CMISFolderTypeDefinition.java:56)
              at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createTypeDefs(CMISStrictDictionaryService.java:84)
              at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createDefinitions(CMISStrictDictionaryService.java:48)
              at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.init(CMISAbstractDictionaryService.java:423)
              at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.afterDictionaryInit(CMISAbstractDictionaryService.java:517)
              at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.onBootstrap(CMISAbstractDictionaryService.java:543)
              at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
              at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
              at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
              at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
              at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
              at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
              at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)

      With SPP module installed:

      2017-11-27 17:08:14,136  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
       org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listServiceHandler' defined in file [/opt/alfresco/alfresco-4.2.8/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org.alfresco.module.vti/context/vti-handler-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 10270000 Failed to re-initialise loadedResourceBundlesCache 
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
       at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
       at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
       at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
       at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
      Caused by: org.alfresco.error.AlfrescoRuntimeException: 10270000 Failed to re-initialise loadedResourceBundlesCache 
       at org.alfresco.repo.i18n.MessageServiceImpl.getLoadedResourceBundles(MessageServiceImpl.java:704)
       at org.alfresco.repo.i18n.MessageServiceImpl.getLocaleProperties(MessageServiceImpl.java:404)
       at org.alfresco.repo.i18n.MessageServiceImpl.getMessage(MessageServiceImpl.java:224)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
       at com.sun.proxy.$Proxy9.getMessage(Unknown Source)
       at org.alfresco.repo.dictionary.DictionaryComponent.getMessage(DictionaryComponent.java:485)
       at org.alfresco.repo.dictionary.M2Label.getLabel(M2Label.java:65)
       at org.alfresco.repo.dictionary.M2Label.getLabel(M2Label.java:79)
       at org.alfresco.repo.dictionary.M2TypeDefinition.getTitle(M2TypeDefinition.java:62)
       at org.alfresco.module.vti.handler.alfresco.AlfrescoListServiceHandler.afterPropertiesSet(AlfrescoListServiceHandler.java:687)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
       ... 26 more

       

      Steps to reproduce:

      1. Install Alfresco 4.2.8.
      2. Add the following line in alfresco-global.properties
        • system.cache.disableMutableSharedCaches=true
      3. Restart Alfresco.

      Expected behaviour:

      Alfresco Bootstraps with L2 caches disabled.

      Actual behaviour:

      Alfresco doesn't bootstrap.

      The issue is reproducible regardless of the index system configured (Lucene, Solr). Cluster enabled or disable is not relevant neither.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  folcina Francisco Olcina Grande
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel