hibernate - No row with the given identifier exists exception

thumbnail
Adam ANDRASKO, modified 13 Years ago. New Member Posts: 2 Join Date: 4/22/10 Recent Posts
Hy,

I have a web service, that saves and gets data from a database. I worked with service.xml. Every time when save methods called the WS delete all relevant data from the database and insert the new one to it. After second save method calls the next get method throws the following exception:
Caused by: com.liferay.portal.kernel.dao.orm.ObjectNotFoundException: org.hibernate.ObjectNotFoundException: No row with the given identifier exists:

Environment: jBoss-4.2.3; Liferay Portal Enterprise Edition 5.2 EE SP4 (Augustine / Build 5208 / May 20, 2009);

Maybe the cache process caused this exception, but I don't know exactly why? Has anyone encountered this error?
thumbnail
Elijah Mangason, modified 13 Years ago. Junior Member Posts: 65 Join Date: 5/14/12 Recent Posts
Yes, I am encountering this error with Liferay 6.1.1 CE-GA2 when deleting then adding a user (ie, Constants.CMD = RESET):

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.liferay.portal.model.impl.UserImpl#10464]

Does anyone know what to do about it?