Expand my Community achievements bar.

getting .ConstraintViolationException: no matching child node definition found while uploading image to Design from tools

Avatar

Level 6

hi

while being in Adobe CQ5 Tools --> Designs--> our site --> static --> images and doing

New File and choosing file to upload, I get this error and can't upload file.

 

Any help please?

12 Replies

Avatar

Level 9

What is the type of content node "images"?. Is it nt:folder or sling:folder?

Jitendra

Xena_bcn wrote...

hi

while being in Adobe CQ5 Tools --> Designs--> our site --> static --> images and doing

New File and choosing file to upload, I get this error and can't upload file.

 

Any help please?

 

Avatar

Level 9

I have to look into nt: folder JCR node format, whether it supports nt file or not. 

Would you mind creating sling:folder and upload the file?. Just try. It is a wild guess.

Jitendra

Avatar

Level 6

can not change property of images folder jcr:primaryType nt:folder

 

what to do?

Avatar

Level 9

Do the following things:

  • Create a new folder and then try to upload one image in that. Just for testing.
  • Also Run a consistency check on the repository.

Xena_bcn wrote...

can not change property of images folder jcr:primaryType nt:folder

 

what to do?

 

Avatar

Level 6

created a folder and uploaded image inside -- WORKED

 

checked in CRXDE browser the new folder properties , it has sling:OrderedFolder type

Avatar

Level 6

 

but the images uploaded look like this in CRXDE

Avatar

Level 9

 Did you try to upload the same image on the folder where the exception was occurring?. 

Well, Glad to know, your problem is solved. Isn't?

Xena_bcn wrote...

 

but the images uploaded look like this in CRXDE

 

Avatar

Level 6

not at all

 

my uploaded images are not view-able as they imported as a folder , oh oh oh.

Avatar

Level 6

but i want to load just 2 images more for design

Avatar

Level 9

JCR explanation about this exception is

ConstraintViolationException will be thrown:

 * either immediately or on save, if adding the node would violate a node type or * implementation-specific constraintor if an attempt is made to add a node as the child of a property.

In Simple terms:

Exception thrown when an action would violate a constraint on repository structure. For example, when an attempt is made to persistently add an item to a node that would violate that node's node type.

Jitendra