5 Replies Latest reply: Mar 9, 2012 4:01 AM by Horia Chiorean RSS

    ItemExistException due to conccurent access ?

    Akram Ben Aissi Newbie

      Hi Modeshapers,

       

      I am writing a small client API to invoke modeshape publish methods. While doing some tests with a few threads trying to create some nested folders I a facing the following exception:

       

      javax.jcr.ItemExistsException: A node definition that allows same name siblings could not be found for the node "/{}MyDir/{}R[2]" in workspace "default"
      

       

      I am trying to create the following folders:

      R/S/T/U/V

      And my threads seems to do the follwing creation orders:

      R/S/T

      R/

      R/S/T/U/V

       

      Can anyone explain if this is an expected behaviour?

       

      Greetings