Re: Mandatory property jcr:predecessors not found in a new node

2016-12-20 Thread mathiasconradt
Hi Chetan, it’s working now with your fix. Thanks. - Mathias > On 20 Dec 2016, at 07:56, chetan mehrotra [via Jackrabbit] > wrote: > > Hi Mathias, > > On Tue, Dec 20, 2016 at 1:31 AM, mathiasconradt > <[hidden email] > > wrote: > > However, the pro

Re: Mandatory property jcr:predecessors not found in a new node

2016-12-19 Thread mathiasconradt
ot;: "nt:resource" } } >From my understanding, the baseVersion should be automatically initialized when the node is made versionable?! https://docs.adobe.com/content/docs/en/spec/jcr/2.0/15_Versioning.html "Additionally, under full versioning: The REFERENCE property jcr:baseVersion o

Re: Mandatory property jcr:predecessors not found in a new node

2016-12-19 Thread mathiasconradt
After doing some further debugging, I found something interesting. But since I'm new to Oak and just getting started, I don't know what to make of it yet. The initial problem org.springframework.web.util.NestedServletException: Request processing failed; nested exception is javax.jcr.nodetype.Con

Re: Mandatory property jcr:predecessors not found in a new node

2016-12-19 Thread mathiasconradt
:file"); session.save(); fileNode.addMixin("mix:versionable"); session.save(); - Mathias mathiasconradt wrote > I am getting the same error message with the current trunk as of today. > Created a new node and added the "mix:versionable" mixable. > > fileNo

Re: Mandatory property jcr:predecessors not found in a new node

2016-12-19 Thread mathiasconradt
I am getting the same error message with the current trunk as of today. Created a new node and added the "mix:versionable" mixable. fileNode = folderNode.addNode(filename, "nt:file"); if (fileNode.canAddMixin("mix:referenceable")) fileNode.addMixin("mix:referenceable"); if (fileNode.c