Hi All, can you help me with this behaviour? No idea why it fails to create a new content node...

// create path for this node under "data". It works, path is created and
// visible in JCR Browser
// basePathis "/folder1/folder2"
final Content baseNode = createPath(basePath, hm);

// save this (persistently apply changes to repo)
baseNode.save();

// I have a data type called "myType".
// So I want to create a new Content Type under "basePath".
Content newNode = baseNode.createContent("test", "myType");

// set name
newNode.createNodeData("name").setValue("test");

// save children
newNode.save();

at this point I have an exception:

"/folder1/folder2/test: cannot save a new item."



Any Idea?

Thanks..
M.


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to