Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Prevent concurrent modifications of the same User object
Jan Tošovský, modificat fa 1 any.
Liferay Master
Apunts: 576
Data d'incorporació: 22/07/10
Publicacions recents
When the User is signed in, the last login date is updated in DB. However, in some scenarios, this can happen in multiple threads, and fail:
2024-06-18 08:12:16.932 ERROR [ajp-nio-127.0.0.1-8009-exec-2085][MainServlet:543] null
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.UserImpl#964101]
- Enable the Remember Me option when logging into the portal
- Open portal pages in multiple tabs
- Close the browser
- Open the browser. The tabs with portal pages are reloaded and each performs auto-logging on behalf of the user (in fast pace). These requests are processed in multiple threads and sometimes fail.
Jamie Sammons, modificat fa 1 any.
Expert
Apunts: 367
Data d'incorporació: 05/09/14
Publicacions recents
Bug report created: https://liferay.atlassian.net/browse/LPD-30166
Community
Company
Feedback