I am new to jackrabbit. I successfully created a node nt:folder and to that I uploaded a document. But now when I am trying to create a versionable node in the repository, I am failing to do so. Basing on the examples I wrote the below mentioned program but it is giving me the following error I tried a lot but failed. Please help me where I am going wrong. What I have to do to create a versionable node and can post documents with versions.
I don't know JakRabbit at all, but you are building a tree like structure in your code. I suggest you grab a piece of paper and draw out the tree as you follow your code along, are you adding nodes in the right place? Are the children properly attached to their parents? You might be able to simulate the drawing by using some ASCII art with System.out as you navigate the nodes in your code.