liferay « DAO « JPA Q&A





1. Exception from hibernate - com.liferay.portal.kernel.dao.orm.ORMException    liferay.com

Hi, I have following problem with deletion of some pages with child pages: Sometimes the following exception is thrown: ERROR [BasePersistenceImpl:52, TP-Processor23]; Caught ORMException ERROR [jsp:52, TP-Processor23]; com.liferay.portal.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: a different object with the same identifier value was already associated with the session: [com.liferay.portal.model.impl.LayoutImpl#23906] The problem occurs inside com.liferay.portal.service.persistence.LayoutPersistenceImpl class in removeImpl(Layout layout) method. protected Layout removeImpl(Layout layout) throws SystemException { ...