ExceptionConverter throws an exception if the Proxy is no longer reachable

Description

The ExceptionConverter tries to adapt the StaleStateException to an OptimisticLockException. Because the OptimisticLockException can also take an entity, we have the following logic:

The load method tries to load a Proxy, and if the Proxy is no longer reachable (maybe it was removed intentionally), then this method call throws an ObjectNotFoundException, therefore masking the OptimisticLockException.

Environment

None

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure