org.postgresql.util.PSQLException: ERROR: > duplicate key > .... > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:331) > > at > org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157) > > at > org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68) > > at > com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99) > > at > com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158) > > at > com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2561) > > at > com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:279) > > at > com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:250) >

Oracle Community | c_krebs | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    infinite message redelivery in the case of a DatabaseException at commit time

    Oracle Community | 6 years ago | c_krebs
    org.postgresql.util.PSQLException: ERROR: > duplicate key > .... > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:331) > > at > org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157) > > at > org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68) > > at > com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99) > > at > com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158) > > at > com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2561) > > at > com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:279) > > at > com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:250) >

    Root Cause Analysis

    1. org.postgresql.util.PSQLException

      ERROR: > duplicate key > .... > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:331) > > at > org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157) > > at > org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68) > > at > com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99) > > at > com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158) > > at > com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2561) > > at > com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:279) > > at > com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:250) >

      at com.sun.jts.CosTransactions.CurrentImpl.commit()
    2. Embedded GlassFish Web
      CurrentImpl.commit
      1. com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:623)
      1 frame