Attempts to obtain an item lock can yield one of the following exceptions:

Exception

Cause

RepositoryException

Deadlock occurs on calls to getItem or getItemForUpdate. This exception is a wrapper for DeadlockException.

ConcurrentUpdateException

The isolation level is set to repeatableRead and the transaction cannot convert a read lock to a write lock—typically because another transaction is trying to obtain a write lock at the same time, or is also trying to convert a read lock to a write lock.

IllegalArgumentException

A transaction calls a method such as setPropertyValue that does not throw a RepositoryException. This exception is a wrapper for RepositoryException, which wraps the pertinent exception.

 
loading table of contents...