jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin B├╝rgi <martin.bue...@idparc.ch>
Subject [Jackrabbit 2.0, beta 6] Problem: adding a Mixin-type with mandatory properties after setting properties leads to exception
Date Tue, 26 Jan 2010 14:12:25 GMT
Hello

Jackrabbit throws an exception for every mandatory property, which was set
before the addMixin.

My nodetype definition:

[nt:foo]
 mixin
- bar(string) mandatory


*this throws the exception "mandatory property {}bar does not exist"*
Node node = session.getRootNode().addNode("test");
node.setProperty("bar", "test");
node.addMixin("nt:foo");
node.getSession().save();

*and this works at least with alpha 4 and before:
*Node node = session.getRootNode().addNode("test");
node.addMixin("nt:foo");
node.setProperty("bar", "test");
node.getSession().save();


regards,
Martin

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