Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2433

NPE when copying nodes with Workspace.copy()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6
    • 1.6.2
    • jackrabbit-core
    • None

    Description

      I get a NullpointerException when using Workspace.copy():

      java.lang.NullPointerException
      at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1834)
      at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1806)
      at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1806)
      at org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:423)
      at org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:444)
      at org.apache.jackrabbit.core.WorkspaceImpl.copy(WorkspaceImpl.java:666)
      at xxx.MyClass.myMeth(MyClass.java)

      It seems that it happens not all the time. The error occurs since we use Jackrabbit 1.6.0. We do not get the error with previous versions. It seems that we only get the error when trying to copy nodes that were created with Jackrabbit 1.4 and copied with Jackrabbit 1.6.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            sascha0137 Sascha Theves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: