legacy-knowledge-base
公開されました Sep. 10, 2025

(IX_228562AD) DuplicateLockExceptionによるサーバー再起動時に違反が発生する。

written-by

Roberto Díaz

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

問題

  • サーバー再起動時に一意制約(IX_228562AD)に違反しました。 として示すことができる。
    • JDBCExceptionReporter クラスの ERROR ログメッセージを表示します。
    • BackgroundTaskMessageListener クラスで INFO ログエラーが発生しました。
    2022-04-20 11:32:25.855 ERROR [liferay/background_task-3][JDBCExceptionReporter:234] integrity constraint violation: unique constraint or index violation: IX_228562AD
    2022-04-20 11:32:25.861 INFO [liferay/background_task-3][BackgroundTaskMessageListener:151] Unable to acquire lock, queuing background task 37387
  • BackgroundTaskMessageListener に対して DEBUG ログレベルを有効にした場合(詳細は Adjusting Log Levels to persist after portal restart を参照)、フルトレースは以下のようになります:
    2022-04-20 11:32:25.855 ERROR [liferay/background_task-3][JDBCExceptionReporter:234] integrity constraint violation: unique constraint or index violation: IX_228562AD
    2022-04-20 11:32:25.861 DEBUG [liferay/background_task-3][BackgroundTaskMessageListener:146] Unable to acquire lock, queuing background task 37387
    com.liferay.portal.kernel.lock.DuplicateLockException: com.liferay.portal.lock.internal.LockImpl@920c
    at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.acquireLock(SerialBackgroundTaskExecutor.java:79)
    at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:57)
    at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
    at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
    at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136)
    at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)
    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
    at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

Environment

  • Liferay DXP 7.3

解決策

  • このケースは、 Constraint (IX_228562AD) violated when LDAP import on startup is on and this error message can be safe to ignoreと同様である。
  • Portalは、元の問題(IX_228562AD 違反)を処理し、それをキューに入れる。 ERROR は Hibernate (JDBCExceptionReporter) によって記録されますが、このログの後、ポータルはバックグラウンドタスクがキューに入れられ、後で実行されることを確認するために INFO メッセージを表示しています。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base