RIB Does Not Delete Messages From The RIB_MESSAGE Table (Doc ID 783328.1)

Last updated on AUGUST 17, 2016

Applies to:

Oracle Retail Integration Bus - Version 13.0.1 and later
Information in this document applies to any platform.
Checked for relevance on 17-January-2012


Symptoms

Unable to delete failed message using RIB Hospital Administrator tool.

Steps to reproduce:
1. Create a message with some kind of error (wrong date in my case) for any topic.
2. Login to the RIB Hospital Administrator tool.
3. Find created message.
4. Wait until the "Attempt Count" will be equal to the "Max Attempts". Press "Delete" button while cursor on this message. The below exception is received:

Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-02292: integrity constraint (RMS13DEV.RMF_RMG_FK) violated - child record found

Error Code: 2292
Call: DELETE FROM RIB_MESSAGE WHERE (((JMS_QUEUE_ID = ?) AND (DELETE_PENDING = ?)) AND (IN_QUEUE = ?))
bind => [retektest:1522, 1, 0]
Query: DeleteAllQuery()
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:296)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:639)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:688)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:477)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:675)
at oracle.toplink.essentials.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:135)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.deleteAll(DatasourceCallQueryMechanism.java:107)
at oracle.toplink.essentials.queryframework.DeleteAllQuery.executeDatabaseQuery(DeleteAllQuery.java:183)
at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:536)
at oracle.toplink.essentials.queryframework.ModifyAllQuery.executeInUnitOfWork(ModifyAllQuery.java:153)
at oracle.toplink.essentials.queryframework.DeleteAllQuery.executeInUnitOfWork(DeleteAllQuery.java:109)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2219)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:372)
at com.retek.rib.domain.hospital.dao.jpa.HospitalDaoImpl.removeMessagesReadyForDeletetion(HospitalDaoImpl.java:1045)
... 24 more
Caused by:
java.sql.SQLException: ORA-02292: integrity constraint (RMS13DEV.RMF_RMG_FK) violated - child record found

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms