1 Reply Latest reply on Jan 27, 2014 10:06 AM by Randall Hauch

    Remove a version failed?

    Angelo Chen Newbie

      When i remove a version it throws javax.jcr.ReferentialIntegrityException: org.modeshape.jcr.cache.ReferentialIntegrityException.

      I notice the version to removed is not the baseVersion, and its references are just processors and successors(I display them in the log). From the log below, remove version 1.0 to 1.21 is ok, however remove version  1.22 failed.

       

      14-01-26 14:49:07.062 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Begin to remove version 1.0

      2014-01-26 14:49:07.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: 1.1

      2014-01-26 14:49:07.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/1.1

      2014-01-26 14:49:07.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: jcr:rootVersion

      2014-01-26 14:49:07.065 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/jcr:rootVersion

      2014-01-26 14:49:07.624 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Success to remove version 1.0

      2014-01-26 14:49:07.625 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Begin to remove version 1.1

      2014-01-26 14:49:07.625 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: jcr:rootVersion

      2014-01-26 14:49:07.626 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/jcr:rootVersion

      2014-01-26 14:49:07.626 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: 1.2

      2014-01-26 14:49:07.626 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/1.2

      2014-01-26 14:49:07.672 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Success to remove version 1.1

      ......

      2014-01-26 14:49:10.020 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Begin to remove version 1.21

      2014-01-26 14:49:10.021 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: jcr:rootVersion

      2014-01-26 14:49:10.021 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/jcr:rootVersion

      2014-01-26 14:49:10.021 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: 1.22

      2014-01-26 14:49:10.022 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/1.22

      2014-01-26 14:49:10.062 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Success to remove version 1.21

      2014-01-26 14:49:10.062 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Begin to remove version 1.22

      2014-01-26 14:49:10.063 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: jcr:rootVersion

      2014-01-26 14:49:10.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/jcr:rootVersion

      2014-01-26 14:49:10.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node name: 1.23

      2014-01-26 14:49:10.064 INFO  c.e.c.j.s.impl.JcrVersionServiceImpl - Reference node path: /jcr:system/jcr:versionStorage/0b/5e/c0/0b5ec024c1915d43a42698a1d5099e5ddb45bb2a/1.23

      2014-01-26 14:51:19.534 ERROR c.e.c.j.s.impl.JcrVersionServiceImpl - Remove version 1.22 failed, skip this version.