Dashboard > Community Wiki > ... > Troubleshooting > ee mandatory child node MetaData does not exist
ee mandatory child node MetaData does not exist Log In View a printable version of the current page.

Added by Jan Haderka , last edited by Philipp Bracher on Jan 21, 2008  (view change)
Labels: 

Symptoms

Upgrade fails with the following message 

Could not perform installation: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist

In the log file exception like this can be found:

ERROR  info.magnolia.cms.core.DefaultHierarchyManager DefaultHierarchyManager.java(save:558) 21.01.2008 11:04:50  /ee: mandatory child node {}MetaData does not exist
javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:549)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1198)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
at info.magnolia.cms.core.DefaultHierarchyManager.save(DefaultHierarchyManager.java:555)
at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:479)
at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:461)
at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:429)
at info.magnolia.module.ModuleManagerImpl$1.exec(ModuleManagerImpl.java:256)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:402)
at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:251)
at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:122)
at java.lang.Thread.run(Thread.java:619)
ERROR  info.magnolia.module.ui.ModuleManagerWebUI ModuleManagerWebUI.java(run:124) 21.01.2008 11:04:50  Could not perform installation: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
java.lang.RuntimeException: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:487)
at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:461)
at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:429)
at info.magnolia.module.ModuleManagerImpl$1.exec(ModuleManagerImpl.java:256)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:402)
at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:251)
at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:122)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:549)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1198)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
at info.magnolia.cms.core.DefaultHierarchyManager.save(DefaultHierarchyManager.java:555)
at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:479)
... 7 more
ERROR  info.magnolia.module.InstallContextImpl InstallContextImpl.java(error:82) 21.01.2008 11:04:50  > Could not perform installation: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
java.lang.RuntimeException: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:487)
at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:461)
at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:429)
at info.magnolia.module.ModuleManagerImpl$1.exec(ModuleManagerImpl.java:256)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:402)
at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:251)
at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:122)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jcr.nodetype.ConstraintViolationException: /ee: mandatory child node {}MetaData does not exist
at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:549)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1198)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
at info.magnolia.cms.core.DefaultHierarchyManager.save(DefaultHierarchyManager.java:555)
at info.magnolia.module.ModuleManagerImpl.saveChanges(ModuleManagerImpl.java:479)
... 7 more


Solution

See: MAGNOLIA-1980@jira



This is related to nodetypes. In 3.0 the nodetypes for the workflow workspaces had MetaData child nodes. We removed those from the 3.5 nodetypes for performance reasons. Somehow in this case the new nodetypes were not registered !?
What was the upgrade scenario? (from what version to what version?)

Upgrade from 3.0.2 to 3.5.3.

Would it help to replace the nodetypes.xml manually prior upgrade? I think the file was extracted onlyafter the repo was initialized which would explain why first attempt failed and second one was successful.

Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators