About NoResultException
javax.persistence.NoResultException
Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult()is executed on a query and there is no result to return.(Exception of JPA)
Running JPA Queries
Explains how to use JPA to run Java Persistence Query Language (JPQL) queries.... On the other hand, if there are no results at all a NoResultException javax.persistence.NoResultException JPA exception Thrown by the persistence provider ...
JPA Exceptions
Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException.... javax.persistence.NoResultException ... javax.persistence.NoResultException javax.persistence.QueryTimeoutException ...
NoResultException()
Constructs a new NoResultException exception with null as its detail message.(Constructor of javax.persistence.NoResultException)
NoResultException(message)
Constructs a new NoResultException exception with the specified detail message.(Constructor of javax.persistence.NoResultException)
NoResultException: No matching results for a unique query
I am very often getting a "com.objectdb.o._NoResultException: No matching results for a unique query" when modifying my already persisted entities within a transaction. I cannot replicate it however because it happens infrequently. The weird thing is that the entity nevertheless gets comitted perfectly right and all data is correctly written so I have no clue what's going on!?? Here's the stacktrace (copy+paste from debug output): ... I am very often getting a "com.objectdb.o._NoResultException: No matching results for a unique query" when modifying my ... of that exception? It is clear that you get a NoResultException that you do not expect. A test case that demonstrates it ...
Criteria Query results in a NoResultException instead of returning object
When I run the following code ... java.lang.RuntimeException: com.objectdb.o._NoResultException: No matching results for a unique query at ... by: com.objectdb.o._NoResultException: No matching results for a unique query at ...
javax.persistence.PersistenceException
Thrown by the persistence provider when a problem occurs.(Exception of JPA)
javax.persistence.TypedQuery
Interface used to control the execution of typed queries.(Interface of JPA)
getSingleResult()
Execute a SELECT query that returns a single untyped result.(Method of javax.persistence.Query)