Michael Vorburger created FINERACT-1260:
-------------------------------------------

             Summary: EntityExistsException
                 Key: FINERACT-1260
                 URL: https://issues.apache.org/jira/browse/FINERACT-1260
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Michael Vorburger


See FINERACT-932 for general background; I've found this in logs of 
https://www.fineract.dev:

{noformat}Caused by: org.apache.openjpa.persistence.EntityExistsException: The 
transaction has been rolled back. See the nested exceptions for details on the 
errors that occurred. at 
org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2470) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2308) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2199) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:2116) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:84)
 ~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1600) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:1035) 
~[openjpa-3.1.2.jar:3.1.2] at 
org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:669)
 ~[openjpa-3.1.2.jar:3.1.2] at 
org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:534)
 ~[spring-orm-5.2.10.RELEASE.jar:5.2.10.RELEASE] ... 19 common frames omitted 
Caused by: org.apache.openjpa.persistence.EntityExistsException: Cannot delete 
or update a parent row: a foreign key constraint fails 
(`fineract_default`.`m_loan_transaction_repayment_schedule_mapping`, CONSTRAINT 
`FK_mappings_m_loan_repayment_schedule` FOREIGN KEY 
(`loan_repayment_schedule_id`) REFERENCES `m_loan_repayment_s){noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to