legacy-knowledge-base
公開されました Jun. 30, 2025

ワークフロータスクタイマーでOptimisticLockExceptionを取得する。

written-by

Anishq Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • OptimisticLockException ワークフロー内でタスクタイマーを使用する際に発生します。
  • 再現するための手順
    • プロセスビルダーの下にワークフローを追加し、同じタスクを同時に実行する2つのタスクタイマーを追加します。
    • ワークフローを任意のアセットに割り当てる(ブログ)
    • アセット(ブログ)を作成する
    • 結果ログに以下のようなエラーが発生しました:
      [KaleoActionExecutorImpl:72] null
      com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl#xxxx]

Environment

  • Liferay DXP 7.4

解決策

  • 観測された動作は既知のバグであり、 LPS-182166 、DXP 7.4 U76で解決されています。
  • ユーザーがLPSに関する詳細な情報を必要とする場合、提供されたLPSについて言及したヘルプセンター・チケットを作成してください。
did-this-article-resolve-your-issue

legacy-knowledge-base