javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: No matching definition found for child node for property [nt:unstructured] | Community
Skip to main content
Level 4
Jun 15, 2023 6:53 AM UTC
Solved

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

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.
Sady_Rifat
Sady_RifatAccepted solution
New Participant
Jun 15, 2023 7:23 AM UTC

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.

5 replies

Sady_Rifat
Sady_RifatAccepted solution
New Participant
Jun 15, 2023 7:23 AM UTC

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.

Translate
Level 4
Jun 15, 2023 7:37 AM UTC

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

Translate
Sady_Rifat
New Participant
Jun 15, 2023 10:19 AM UTC

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.

Translate
DPrakashRaj
New Participant
Jun 15, 2023 7:20 AM UTC

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

 

Translate