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

Setting folder path on IMAP causes error on startup

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Not a bug
    • Affects Version/s: 4.1.3
    • Fix Version/s: None
    • Component/s: Installer
    • Labels:
      None
    • Environment:
      Windows 2008, Tomcat, MySQL
    • Bug Priority:
      Category 2
    • ACT Numbers:

      62507

      Description

      Description:

      Customer is getting an error when using IMAP on version 4.1.3. It seems the error is caused by this property:
      imap.config.server.mountPoints.value.Sites.folderPath=Sites

      I tried using a different folder path, one that was valid. This did not work either. When the property is commented out, the server starts correctly.

      Steps to reproduce:

      1. Add the following configuration in alfresco-global.properties

      #IMAP
      imap.server.enabled=true
      imap.server.port=143
      imap.server.host=192.168.10.103
      imap.server.attachments.extraction.enabled=false

      1. Set default ImapConfigMountPointsBean property values
        imap.config.server.mountPoints.default.store=${spaces.store}
        imap.config.server.mountPoints.default.mountPointName=ALFTEST_MAIL_ARCHIVE
        imap.config.server.mountPoints.default.rootPath=/${spaces.company_home.childname}
        imap.config.server.mountPoints.default.modeName=VIRTUAL
      1. Define mount points (i.e. ImapConfigMountPointsBean beans) in this case Sites only
        imap.config.server.mountPoints=Sites
      2. Set mount point specific properties (per ImapConfigMountPointsBean bean)
      3. The lines below generate the errors viewed in catalina.out
        imap.config.server.mountPoints.value.Sites.mountPointName=Sites
        #imap.config.server.mountPoints.value.Sites.folderPath=Sites
        imap.config.server.mountPoints.value.Sites.modeName=MIXED

      2. Start the server.

      Expected Behaviour:

      IMAP subsystem should start with no errors.

      Observer Behaviour:

      14:47:05,109 ERROR [org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean] Error auto-starting subsystem
      org.alfresco.error.AlfrescoRuntimeException: 02140000 Folder not found: Folder Path: workspace://SpacesStore/app:company_home/Sites
      at org.alfresco.util.config.RepositoryFolderConfigBean.getFolderPath(RepositoryFolderConfigBean.java:132)
      at org.alfresco.repo.imap.ImapServiceImpl$4.execute(ImapServiceImpl.java:1218)
      at org.alfresco.repo.imap.ImapServiceImpl$4.execute(ImapServiceImpl.java:1213)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
      at org.alfresco.repo.imap.ImapServiceImpl.getMountPoint(ImapServiceImpl.java:1212)
      at org.alfresco.repo.imap.ImapServiceImpl.listMailboxes(ImapServiceImpl.java:1044)
      at org.alfresco.repo.imap.ImapServiceImpl$1$1.execute(ImapServiceImpl.java:462)
      at org.alfresco.repo.imap.ImapServiceImpl$1$1.execute(ImapServiceImpl.java:451)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:259)
      at org.alfresco.repo.imap.ImapServiceImpl$1.doWork(ImapServiceImpl.java:449)
      at org.alfresco.repo.imap.ImapServiceImpl$1.doWork(ImapServiceImpl.java:445)
      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
      at org.alfresco.repo.imap.ImapServiceImpl.startupInTxn(ImapServiceImpl.java:444)
      at org.alfresco.repo.imap.ImapServiceImpl$ImapServiceBootstrap.onBootstrap(ImapServiceImpl.java:214)
      at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
      at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext.publishEvent(ChildApplicationContextFactory.java:513)
      at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
      at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:714)
      at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:667)
      at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:473)
      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:4206)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Environment Reproduction:

      Alfresco 4.1.3, Windows 2008, Tomcat, MySQL.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  dalmazan David Almazan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel