Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5836

AreaElement : Can't autocreate area 'null'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.2.6, 5.3.1, 5.4.9
    • Fix Version/s: 5.4.11, 5.5.1
    • Component/s: templating
    • Labels:
    • Sprint:
      Saigon 74
    • Story Points:
      5
    • Magnolia Release:
      5.4.11, 5.5.1

      Description

      This error will be thrown when rendering a new page with a specific template (i.e. FAQ) for the first time:

      ERROR info.magnolia.templating.elements.AreaElement     : Can't autocreate area 'null'.
      javax.jcr.PathNotFoundException: footer
          at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2163)
          at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2157)
          at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
          at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
          at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2157)
          at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:197)
          at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:120)
          at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:197)
          at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:120)
          at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:197)
          at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:120)
          at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:197)
          at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:120)
          at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:197)
          at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:120)
          at info.magnolia.templating.elements.AreaElement.createNewAreaNode(AreaElement.java:247)
          at info.magnolia.templating.elements.AreaElement.tryToCreateAreaNode(AreaElement.java:351)
          at info.magnolia.templating.elements.AreaElement.begin(AreaElement.java:171)
          at info.magnolia.templating.freemarker.AbstractDirective.execute(AbstractDirective.java:92)
          at freemarker.core.Environment.visit(Environment.java:274)
          at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
          at freemarker.core.Environment.visit(Environment.java:221)
          at freemarker.core.MixedContent.accept(MixedContent.java:92)
          at freemarker.core.Environment.visit(Environment.java:221)
          at freemarker.core.Environment.process(Environment.java:199)
          at freemarker.template.Template.process(Template.java:237)
          at info.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:153)
          at info.magnolia.rendering.renderer.FreemarkerRenderer.onRender(FreemarkerRenderer.java:96)
          at info.magnolia.rendering.renderer.AbstractRenderer.render(AbstractRenderer.java:151)
          at info.magnolia.module.templatingkit.renderers.STKRenderer.render(STKRenderer.java:95)
          at info.magnolia.rendering.engine.DefaultRenderingEngine.render(DefaultRenderingEngine.java:106)
          at info.magnolia.rendering.engine.DefaultRenderingEngine$$EnhancerByCGLIB$$bade892.render(<generated>)
          at info.magnolia.rendering.engine.RenderingFilter.render(RenderingFilter.java:205)
          at info.magnolia.rendering.engine.RenderingFilter.handleTemplateRequest(RenderingFilter.java:139)
          at info.magnolia.rendering.engine.RenderingFilter.doFilter(RenderingFilter.java:91)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.rendering.model.ModelExecutionFilter.doFilter(ModelExecutionFilter.java:101)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.AggregatorFilter.doFilter(AggregatorFilter.java:103)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:57)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.RepositoryMappingFilter.doFilter(RepositoryMappingFilter.java:100)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:74)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.VirtualUriFilter.doFilter(VirtualUriFilter.java:68)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.module.cache.executor.Bypass.processCacheRequest(Bypass.java:58)
          at info.magnolia.module.cache.executor.CompositeExecutor.processCacheRequest(CompositeExecutor.java:66)
          at info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:153)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.i18n.I18nContentSupportFilter.doFilter(I18nContentSupportFilter.java:73)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.RangeSupportFilter.doFilter(RangeSupportFilter.java:84)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:57)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.multisite.filters.CrossSiteSecurityFilter.doFilter(CrossSiteSecurityFilter.java:104)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.security.SecurityCallbackFilter.doFilter(SecurityCallbackFilter.java:83)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:93)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.module.templatingkit.filters.SiteMergeFilter.doFilter(SiteMergeFilter.java:112)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.multisite.filters.MultiSiteFilter.doFilter(MultiSiteFilter.java:106)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.MultiChannelFilter.doFilter(MultiChannelFilter.java:82)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.module.cache.filter.GZipFilter.doFilter(GZipFilter.java:73)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:104)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.enterprise.registration.RegistrationFilter.doFilter(RegistrationFilter.java:56)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
          at info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:89)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.module.devicedetection.filter.DeviceDetectionFilter.doFilter(DeviceDetectionFilter.java:71)
          at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:58)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:103)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:129)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
          at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
          at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
          at info.magnolia.cms.filters.SafeDestroyMgnlFilterWrapper.doFilter(SafeDestroyMgnlFilterWrapper.java:106)
          at info.magnolia.cms.filters.MgnlFilterDispatcher.doDispatch(MgnlFilterDispatcher.java:66)
          at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:107)
          at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:93)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
          at java.lang.Thread.run(Thread.java:695)
      

      To reproduce:

      1. Go to PagesApp
      2. Create a new subpage under /demo-features
      3. Select template FAQ
      4. Preview page and see errors (javax.jcr.PathNotFoundException) in log for these areas:
        1. footer
        2. base
        3. promos
        4. content
        5. metaNavigation

        Attachments

          Activity

            People

            • Assignee:
              mgeljic Mikaël Geljić
              Reporter:
              pmundt Philip Mundt
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response:

                Time Tracking

                Estimated:
                Original Estimate - 3d Original Estimate - 3d
                3d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 3d 5h
                3d 5h