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

NullPointerException When Doing Restore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.6.0.Final
    • Fix Version/s: 3.7.0.Final, 3.3.x-prod-ip6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      MacOS 10.9
      JDK 1.7.21
      modeshape 3.6.0

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hchiorean Horia Chiorean
                  Reporter:
                  angelo.chen Angelo Chen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: