4 Replies Latest reply on Sep 14, 2012 6:18 AM by Sham HC

    Creating a New Page inside Site built as a LiveCopy from a Blueprint

    ddaniel@siteworx

      I have a blueprint called "Main Office", and I have multiple LiveCopies like Office #1, Office #2, Office #3. Suppose I detach Office #2 from the Blueprint (which creates a standalone copy of the page). I now go ahead and add a child page, using SiteAdmin. When I create this page, and in the siteadmin go to the parent of this page and ask it to list its children, it doesn't respond. Using firebug, I notice there is a 500 error with the following stackdump:

       

       

      Exception:
      
      
      java.lang.NullPointerException
                at java.util.ArrayList.addAll(ArrayList.java:472)
                at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.computeRolloutConfigs(LiveRelationshipManagerImpl.java:1162)
                at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.buildRelationship(LiveRelationshipManagerImpl.java:1085)
                at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.getLiveRelationship(LiveRelationshipManagerImpl.java:936)
                at com.day.cq.wcm.core.impl.servlets.PageListServlet$PageListItem.writeLiveRelationshipState(PageListServlet.java:346)
                at com.day.cq.wcm.core.impl.servlets.PageListServlet$PageListItem.write(PageListServlet.java:270)
                at com.day.cq.commons.servlets.AbstractListServlet.write(AbstractListServlet.java:234)
                at com.day.cq.commons.servlets.AbstractListServlet.doGet(AbstractListServlet.java:108)
                at com.day.cq.commons.servlets.AbstractPredicateServlet.doGet(AbstractPredicateServlet.java:75)
                at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
                at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:139)
                at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
                at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
                at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
                at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
                at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308)
                at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:280)
                at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
                at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:185)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:220)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.java:76)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)
                at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
                at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:171)
                at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:199)
                at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
                at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
                at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
                at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
                at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
                at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)
                at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
                at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
                at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
                at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
                at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
                at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
                at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
                at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
                at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:277)
                at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:150)
                at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:228)
                at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
                at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)
                at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilter.java:96)
                at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)
                at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
                at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
                at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)
                at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134)
                at java.lang.Thread.run(Thread.java:619)
      

       

      Can someone help me figure this out?