[MGNLMSHAPE-17] Webapp fails with NPE during installation Created: 26/Nov/13  Updated: 27/Jul/15  Resolved: 27/Jul/15

Status: Closed
Project: Modeshape Provider (closed)
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Bug Priority: Blocker
Reporter: Jozef Chocholacek Assignee: Jozef Chocholacek
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLMSHAPE-15 Update the provider for Magnolia 5 an... Closed
Template:
Acceptance criteria:
Empty

 Description   

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


 Comments   
Comment by Jozef Chocholacek [ 26/Nov/13 ]

It's probably caused by the order of creating/deleting/updating the nodes and properties… Would probably require help from the ModeShape team to analyse.

Comment by Jozef Chocholacek [ 04/Dec/13 ]

It is caused by https://issues.jboss.org/browse/MODE-2108 - should be fixed in ModeShape 3.7

Generated at Mon Feb 12 10:19:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.