Uploaded image for project: 'Modeshape Provider (closed)'
  1. Modeshape Provider (closed)
  2. MGNLMSHAPE-17

Webapp fails with NPE during installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Blocker Blocker
    • 2.0
    • 2.0
    • None

      After the deployment, the web app starts and offers the installation wizard. But then the installation fails with:

      ERROR info.magnolia.cms.core.DefaultHierarchyManager    : java.lang.NullPointerException
      javax.jcr.RepositoryException: java.lang.NullPointerException
      	at org.modeshape.jcr.JcrSession.save(JcrSession.java:1158)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.save(DelegateSessionWrapper.java:299)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.save(DelegateSessionWrapper.java:299)
      	at info.magnolia.jcr.wrapper.LastUpdateContentDecorator$LastUpdateSessionWrapper.save(LastUpdateContentDecorator.java:363)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.save(DelegateSessionWrapper.java:299)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.save(DelegateSessionWrapper.java:299)
      	at info.magnolia.audit.MgnlAuditLoggingContentDecoratorSessionWrapper.save(MgnlAuditLoggingContentDecoratorSessionWrapper.java:82)
      	at info.magnolia.cms.core.DefaultHierarchyManager.save(DefaultHierarchyManager.java:474)
      	at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:545)
      	at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:527)
      	at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:494)
      	at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:277)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:415)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:412)
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:386)
      	at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:271)
      	at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:127)
      	at java.lang.Thread.run(Thread.java:695)
      Caused by: java.lang.NullPointerException
      	at org.modeshape.jcr.cache.PathCache.getPath(PathCache.java:46)
      	at org.modeshape.jcr.cache.document.WritableSessionCache.persistChanges(WritableSessionCache.java:1127)
      	at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:620)
      	at org.modeshape.jcr.JcrSession.save(JcrSession.java:1141)
      	... 17 more
      

        Acceptance criteria

              jchocholacek Jozef Chocholacek
              jchocholacek Jozef Chocholacek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: