com/Mandatory-property-jcr-predecessors-not-found-in-a-new-node-tp4664014p4665906.html>
> To unsubscribe from Mandatory property jcr:predecessors not found in a new
> node, click here
> <http://jackrabbit.510166.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node
Hi Mathias,
On Tue, Dec 20, 2016 at 1:31 AM, mathiasconradt
wrote:
> However, the problem DOES NOT occur when I don't use the default repo
> configuration but get the session from my own repository configuration
Thanks for digging into this. I have opened OAK-5349 for this. Can you
try with curr
filename, "nt:file");
>> if (fileNode.canAddMixin("mix:referenceable"))
>> fileNode.addMixin("mix:referenceable");
>> if (fileNode.canAddMixin("mix:versionable"))
>> fileNode.addMixin("mix:versionable");
>> // if (fileNode.canAddMixin("mix:simpleVersionable&q
ception is javax.jcr.nodetype.ConstraintViolationException:
OakConstraint0021: /documents/versiontest41.jpg[[nt:file, mix:referenceable,
mix:versionable]]: Mandatory property jcr:predecessors not found in a new
node
ONLY occurs when I use the default repository as it is configured in the
oak-standalone app
(https://
ache.org/jira/browse/OAK-1118
>
> Regards,
> Mathias
>
> smg11 wrote
>> Hi While accessing Jackrabbit oak through deployed Jackrabbit oak web-app
>> using rmi, I am getting following error while check in the node to
>> repository.
>>
>> Stack trace:
>> Exceptio
.web.util.NestedServletException: Request processing
failed; nested exception is javax.jcr.nodetype.ConstraintViolationException:
OakConstraint0021: /documents/versiontest3.jpg[[nt:file, mix:referenceable,
mix:versionable]]: Mandatory property jcr:predecessors not found in a new
node
(However, I don't get the me
2713844833[[nt:unstructured,
mix:versionable]]: Mandatory property jcr:predecessors not found in a new
node
at
org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:109)
at
org.apache.jackrabbit.rmi.server.ServerSession.save(ServerSession.java:265)