Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2096

NullPointerException When Doing Restore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.7.0.Final, 3.3.x-prod-ip6.0
    • 3.6.0.Final
    • None
    • None

      NullPointException when doing restore, the full stacktrace paste below.

       Error 2013-11-04 17:53:20,760 [http-bio-8080-exec-1] ERROR errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /modeshape-version-testcase/version/testVersion
      Stacktrace follows:
      Message: null
          Line | Method
      ->>   46 | getPath        in org.modeshape.jcr.cache.PathCache
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
         1127 | persistChanges in org.modeshape.jcr.cache.document.WritableSessionCache
          620 | save . . . . . in     ''
         1141 | save           in org.modeshape.jcr.JcrSession
          904 | restore . . .  in org.modeshape.jcr.JcrVersionManager
          712 | restore        in     ''
           59 | testVersion .  in modeshape.version.testcase.VersionService
            8 | testVersion    in modeshape.version.testcase.VersionController
          195 | doFilter . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
           63 | doFilter       in grails.plugin.cache.web.filter.AbstractFilter
         1145 | runWorker . .  in java.util.concurrent.ThreadPoolExecutor
          615 | run            in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    722 | run . . . . .  in java.lang.Thread
      

      this caused by the new added node has no old path and the path of insert before node is also null.

      see the code line of L1127 of WriteableSessionCache.java

              hchiorean Horia Chiorean (Inactive)
              angelo.chen Angelo Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: