When I am removing a record from the list page it shows the following exception.
ClassCastException: org.eclipse.persistence.internal.indirection.jdk8.IndirectList cannot be cast to com.haulmont.cuba.core.entity.Entity
In our application there is an Institute entity which is associated to employee with one to many relation and with the same entity with many to one relation.
The design is for one Institute can have child institutes and all institute has it’s own employees. I created a parent institute and associate it to a child institute. I get the above exception while removing the child institute or parent institute. It works perfectly if the parent and child institutes are not related to each other.
We are using CUBA 6.2.3 and MySQL database. Also we have configured the application to support soft delete.
Please tell me a way to fix this issue.