Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5392

DumperUtil should now fail on InvalidItemStateException

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 5.1.1
    • 5.1
    • None
    • None
    • 5.1.1

      Several ee-bundle builds failed with an InvalidItemStateException. It seems to be a timing issue. Obviously there's concurrent modifications going on and hence one thread could remove a property but DumperUtil tries doesn't realize and tries to dump it. This is to be expected so DumperUtil should be more tolerant.

      Sample stacktrace:

      Templating Warning - http://localhost:9199/magnoliaTest/demo-project/news-and-events/events-overview/another-event~mgnlArea=comments~
          Nothing rendered. The area node is probably empty.
      [INFO] [talledLocalContainer] 2013-10-16 10:44:08,904 ERROR info.magnolia.cms.util.DumperUtil                 : can't dump
      [INFO] [talledLocalContainer] javax.jcr.InvalidItemStateException: Item does not exist anymore: 37ecfdb7-4130-4e18-97e0-75f5ee7fad2e/{http://www.jcp.org/jcr/1.0}lockOwner
      [INFO] [talledLocalContainer] 	at org.apache.jackrabbit.core.ItemImpl.itemSanityCheck(ItemImpl.java:116)
      [INFO] [talledLocalContainer] 	at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:104)
      [INFO] [talledLocalContainer] 	at org.apache.jackrabbit.core.PropertyImpl.getDefinition(PropertyImpl.java:855)
      [INFO] [talledLocalContainer] 	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getDefinition(DelegatePropertyWrapper.java:223)
      [INFO] [talledLocalContainer] 	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getDefinition(DelegatePropertyWrapper.java:223)
      [INFO] [talledLocalContainer] 	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getDefinition(DelegatePropertyWrapper.java:223)
      [INFO] [talledLocalContainer] 	at info.magnolia.cms.util.DumperUtil.dump(DumperUtil.java:136)
      [INFO] [talledLocalContainer] 	at info.magnolia.cms.util.DumperUtil.dump(DumperUtil.java:84)
      [INFO] [talledLocalContainer] 	at info.magnolia.module.admininterface.pages.JCRUtilsPage.dump(JCRUtilsPage.java:115)
      

        Acceptance criteria

              dlipp Daniel Lipp
              dlipp Daniel Lipp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD