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

Null-Pointer on Import

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.3.0.Final
    • 3.2.0.Final
    • None
    • None

      When I import an workspace.xml file using

      session.importXML("/", s, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
      session.save();
      

      The Import works first time. If now the repo is full and I try to re-import the same workspace again (e.g.: after I made wrong changes etc) then an null-pointer error occurs:

      Root cause:
      
      java.lang.NullPointerException
      at org.modeshape.jcr.JcrSession$JcrPreSave.process(JcrSession.java:1844)
      at org.modeshape.jcr.cache.document.WritableSessionCache.runPreSaveBeforeTransaction(WritableSessionCache.java:465)
      at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:522)
      at org.modeshape.jcr.JcrSession.save(JcrSession.java:988)
      at org.brixcms.jcr.base.wrapper.SessionWrapper.save(SessionWrapper.java:201)
      at org.brixcms.jcr.api.wrapper.SessionWrapper$18.execute(SessionWrapper.java:274)
      at org.brixcms.jcr.api.wrapper.AbstractWrapper.executeCallback(AbstractWrapper.java:106)
      at org.brixcms.jcr.api.wrapper.SessionWrapper.save(SessionWrapper.java:272)
      at org.brixcms.plugin.snapshot.ManageSnapshotsPanel$7.onSubmit(ManageSnapshotsPanel.java:237)
      .....
      

      The exact same workspace.xml in usage with modeshape 2.8 can be imported as often as required and overwrites the old content;

              hchiorean Horia Chiorean (Inactive)
              kbachl K. Bachl (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: