Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4782

Update all content logs a null pointer exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • r2.18.00RC1
    • r2.18.00RC1
    • None
    • None
    • Quick start from trunk

    Description

      1. Start quick start with empty prev repository.
      2. Login as admin
      3. Click on Documents -> Configuration -> defaultcontent namespace
      4. Click on Article and Edit
      5. Add a compound field (hippo:resource)
      6. Click Save & Done
      7. Click update all content in the popup menu for the defaultcontent namespace.
      8. Click "OK" on the dialog.
      9. The dialog reports success, but the console logs a NPE.

      01.12.2010 13:00:53 INFO [org.hippoecm.repository.updater.UpdaterEngine.close():554] migration close remapping defaultcontent_1_7 -> defaultcontent -> defaultcontent_1_6
      01.12.2010 13:00:54 WARN [org.hippoecm.frontend.JcrObservationManager$JcrListener.subscribe():372] Path no longer exists, stopping observation; hippo:namespaces/defaultcontent/article/hipposysedit:prototypes/hipposysedit:prototype[2]/defaultcontent:body
      01.12.2010 13:00:54 WARN [org.hippoecm.frontend.JcrObservationManager$JcrListener.subscribe():372] Path no longer exists, stopping observation; hippo:namespaces/defaultcontent/article/hipposysedit:prototypes/hipposysedit:prototype[2]/defaultcontent:hippo_resource
      01.12.2010 13:00:54 WARN [org.hippoecm.frontend.JcrObservationManager$JcrListener.getEvents():744] Root node no longer exists: hippo:namespaces/defaultcontent/article/hipposysedit:prototypes/hipposysedit:prototype[2]/defaultcontent:body
      01.12.2010 13:00:54 WARN [org.hippoecm.frontend.JcrObservationManager$JcrListener.getEvents():744] Root node no longer exists: hippo:namespaces/defaultcontent/article/hipposysedit:prototypes/hipposysedit:prototype[2]/defaultcontent:hippo_resource
      01.12.2010 13:01:17 ERROR [org.apache.wicket.RequestCycle.logRuntimeException():1529]
      java.lang.NullPointerException
      at org.hippoecm.frontend.resource.JcrResourceStream.getContentType(JcrResourceStream.java:65)
      at org.apache.wicket.request.target.resource.ResourceStreamRequestTarget.configure(ResourceStreamRequestTarget.java:207)
      at org.apache.wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:150)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
      at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1267)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1334)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:317)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              vkiran Vijay Kiran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: