Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-7091

Increase transaction timeout for JSF to WebUI migration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2024.3.0
    • Component/s: Migration

      Description

      Some projects may take a long time to migration and a transaction timeout will make the operation fail with this exception :

      org.nuxeo.runtime.transaction.TransactionRuntimeException: Transaction has timed out: Tx started: 1720539426846, timeout: 1720540326846 (duration 900s), current: 1720540971166
      	at org.nuxeo.runtime.transaction.TransactionHelper.checkTransactionTimeout(TransactionHelper.java:277) ~[?:?]
      	at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:301) ~[?:?]
      	at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:65) ~[?:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:378) ~[?:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.exists(AbstractSession.java:918) ~[?:?]
      	at com.nuxeo.studio.core.StudioProjectServiceImpl.hasProject(StudioProjectServiceImpl.java:477) ~[?:?]
      	at com.nuxeo.studio.core.StudioProjectServiceImpl.getProjectInfoWithoutWorkspace(StudioProjectServiceImpl.java:547) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$6888$3233866$\^eval\_.L:1-1#L:48286#ProjectService#getProject(<eval>:48539) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$6854$3238913$\^eval\_.L:1-1#L:48286#ProjectService#fetchRegistries(<eval>:48686) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$6885$3238326$\^eval\_.L:1-1#L:48286#ProjectService#getRegistries(<eval>:48670) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$8772$2984315$\^eval\_.L:1-1#L:42141#DocumentTypeBuilder#read(<eval>:42196) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$14839$2989911AA$\^eval\_.L:1-1#L:42141#DocumentTypeBuilder#getFeature(<eval>:42331) ~[?:?]
      	at jdk.nashorn.internal.scripts.Script$Recompilation$11619$3242593AAA$\^eval\_.L:1-1#L:48286#scaffold(<eval>:48804) ~[?:?]
      	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:661) ~[jdk.scripting.nashorn:?]
      	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513) ~[jdk.scripting.nashorn:?]
      	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:527) ~[jdk.scripting.nashorn:?]
      	at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:202) ~[jdk.scripting.nashorn:?]
      	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:393) ~[jdk.scripting.nashorn:?]
      	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeMethod(NashornScriptEngine.java:206) ~[jdk.scripting.nashorn:?]
      	at com.nuxeo.studio.core.designer.DesignerServiceImpl.execute(DesignerServiceImpl.java:348) ~[?:?]
      	at com.nuxeo.studio.core.designer.DesignerServiceImpl.scaffold(DesignerServiceImpl.java:107) ~[?:?]
      	at com.nuxeo.studio.core.upgrade.upgraders.DocumentLayoutUpgrader.run(DocumentLayoutUpgrader.java:75) ~[?:?]
      	at com.nuxeo.studio.core.upgrade.UpgradeServiceImpl.runUpgraders(UpgradeServiceImpl.java:297) ~[?:?]
      	at com.nuxeo.studio.core.upgrade.UpgradeServiceImpl.lambda$upgradeProject$2(UpgradeServiceImpl.java:194) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:675) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:654) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInNewTransaction$3(TransactionHelper.java:619) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runAndCleanupTransactionContext(TransactionHelper.java:748) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runWithoutTransaction$1(TransactionHelper.java:598) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runWithoutTransactionInternal(TransactionHelper.java:702) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runWithoutTransaction(TransactionHelper.java:598) ~[?:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInNewTransaction(TransactionHelper.java:619) ~[?:?]
      	at com.nuxeo.studio.core.upgrade.UpgradeServiceImpl.lambda$upgradeProject$3(UpgradeServiceImpl.java:184) ~[?:?]
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) [?:?]
      	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) [?:?]
      	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
      	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
      	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
      	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
      	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: