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

Error not allowed to follow a legitimate lifecycle transition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime, Synchronization

      Description

      Ran into an error where a call to CoreSession.followTransition() failed with error

      Not allowed to follow transition <to_inReview> from state <upload>

      although this transition is allowed on the lifecycle defined in Studio.

      Here is the Java stacktrace:

      org.nuxeo.ecm.core.api.LifeCycleException: Not allowed to follow transition <to_inReview> from state <upload>org.nuxeo.ecm.core.api.LifeCycleException: Not allowed to follow transition <to_inReview> from state <upload> at org.nuxeo.ecm.core.lifecycle.impl.LifeCycleServiceImpl.followTransition(LifeCycleServiceImpl.java:134) ~[nuxeo-core-2023.6.12.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSDocument.followTransition(DBSDocument.java:915) ~[nuxeo-core-storage-dbs-2023.6.12.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.followTransition(AbstractSession.java:2528) ~[nuxeo-core-2023.6.12.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.followTransition(AbstractSession.java:2547) ~[nuxeo-core-2023.6.12.jar:?] at com.lulubdam.work.PdpAssetWork.lambda$doTheWork$0(PdpAssetWork.java:74) ~[lulubdam-core-0.0.1-b185-SNAPSHOT.jar:?] at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] at com.lulubdam.work.PdpAssetWork.doTheWork(PdpAssetWork.java:74) ~[lulubdam-core-0.0.1-b185-SNAPSHOT.jar:?] at com.lulubdam.work.PdpAssetWork.work(PdpAssetWork.java:59) ~[lulubdam-core-0.0.1-b185-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:493) ~[nuxeo-core-event-2023.6.12.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:352) ~[nuxeo-core-event-2023.6.12.jar:?] at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-2023.6.12.jar:?] at org.nuxeo.ecm.core.work.WorkComputation.processRecord(WorkComputation.java:105) ~[nuxeo-core-event-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.lambda$processRecordWithRetry$10(ComputationRunner.java:510) ~[nuxeo-stream-2023.6.12.jar:?] at net.jodah.failsafe.Functions$10.call(Functions.java:252) [failsafe-1.1.1.jar:1.1.1] at net.jodah.failsafe.SyncFailsafe.call(SyncFailsafe.java:145) [failsafe-1.1.1.jar:1.1.1] at net.jodah.failsafe.SyncFailsafe.run(SyncFailsafe.java:81) [failsafe-1.1.1.jar:1.1.1] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecordWithRetry(ComputationRunner.java:510) [nuxeo-stream-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecordWithTracing(ComputationRunner.java:461) [nuxeo-stream-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecord(ComputationRunner.java:453) [nuxeo-stream-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processLoop(ComputationRunner.java:313) [nuxeo-stream-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.runOnce(ComputationRunner.java:257) [nuxeo-stream-2023.6.12.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.run(ComputationRunner.java:224) [nuxeo-stream-2023.6.12.jar:?] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
      

      I am suspecting this issue is similar to NXP-32483 and caused by the lifecycle states not having been fully initialized yet. When I tried to update the lifecycle state by following the same transition later, it worked.

      Currently using LTS 2023 HF09.

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: