Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25159

Unable to execute Document.AddToCollection more than once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.10-HF09
    • Fix Version/s: 10.3
    • Component/s: Automation
    • Backlog priority:
      1,000
    • Browser:
    • Sprint:
      nxGang Sprint 10.10.1
    • Story Points:
      2

      Description

      • Install Studio project
      • Start Nuxeo
      • Login as Administrator / Administrator
      • Create a workspace
      • Create a folder
      • Put two files in the folder
      • Select one of the files
      • Click the Add to Selects action
      • Select the other file
      • Click the Add to Selects action

      Result:

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.collections.core.CollectionManagerImpl.addToCollection(CollectionManagerImpl.java:97)
      	at org.nuxeo.ecm.collections.core.automation.AddToCollectionOperation.run(AddToCollectionOperation.java:54)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:173)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:178)
      	... 162 more
      

      Based on some limited debugging, the platform is using an old session id inside CollectionManagerImpl.Java, don't know why.

      Studio Project: jfletcher-sandbox-rollin
      Branch: feature/nxp-25159
      I will attach the package.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 15 minutes
                3h 15m