jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francisco Carriedo Scher <fcarrie...@gmail.com>
Subject Creating nt:file under nt:folder exception
Date Fri, 22 Jul 2011 12:39:23 GMT
Hi there,

i am trying to add a child node to a nt:folder node (rep:AuthorizableFolder
node actually, but the same problem arises with other node types). In the
lines below the folder node appears in the path as

Saw your examples and some similar more, but the following line:

            **Node fileNode = folderNode.addNode(file.getName(),

throws the following exception:

**Exception in thread "main"
javax.jcr.nodetype.ConstraintViolationException: No child node definition
for lebAudio.mp3 found in node

Despite of having read some docu about node types (and understanding that
nt:file is allowed as nt:folder child, and both are built-in types in
Jackrabbit, so nothing special should be done) i do not understand what is
wrong. Any idea?

Thanks in advance, have a nice day!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message