javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: No matching definition found for child node for property [nt:unstructured] | Community
Skip to main content
New Participant
June 15, 2023
Solved

javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: No matching definition found for child node for property [nt:unstructured]

  • June 15, 2023
  • 2 replies
  • 2751 views

I'm trying to commit a user session using Java code. But during committing, getting the above error. What can be issue and how it can be resolved?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sady_Rifat

The error indicates that you wanted to create a node where the type is nt:unstructured. But the parent node doesn't allow this.

To make sure you can examine the node type definition using CRXDE by manually creating the expected behavior.

2 replies

Sady_Rifat
Sady_RifatAccepted solution
New Participant
June 15, 2023

The error indicates that you wanted to create a node where the type is nt:unstructured. But the parent node doesn't allow this.

To make sure you can examine the node type definition using CRXDE by manually creating the expected behavior.

New Participant
June 15, 2023

Is there a way we can change the node type definition? How to do so?

Sady_Rifat
New Participant
June 15, 2023

From my limitation, I don't have the idea to change the node type definition. If possible you can try with different node type or change the parent node properties which will allow your child.

DPrakashRaj
New Participant
June 15, 2023

It seems nt:unstructured is not a valid node type of parent node that you are trying to save.