About NoResultException

1-10 of 28Refresh
JPA Doc
116

NoResultException()

Constructor javax.persistence.NoResultException NoResultException() Constructs a new NoResultException exception with null as its detail message. Since: JPA 1.0
JPA Doc
116

NoResultException(message)

Constructor javax.persistence.NoResultException NoResultException(   String message ) Constructs a new NoResultException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 1.0
JPA Doc
93

javax.persistence.NoResultException

javax.persistence Exception NoResultException java.lang.Object java.lang.Throwable ... .PersistenceException javax.persistence.NoResultException Implemented Interfaces ... .getSingleResult() TypedQuery.getSingleResult() NoResultException() Constructs a new NoResultException exception
JPA Doc
78

JPA Exceptions

javax.persistence.NoResultException javax.persistence
Manual
78

Running JPA Queries

at all a NoResultException is thrown. Therefore, using getSingleResult requires some caution
Forum
27

Criteria Query results in a NoResultException instead of returning object

._NoResultException: No matching results for a unique query at org.jboss.seam.security.IdentityImpl ... ) Caused by: com.objectdb.o._NoResultException: No matching results for a unique query at com.objectdb.o
Issue
27

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 ... trace of that exception? It is clear that you get a NoResultException that you do not expect. A test
JPA Doc
9

javax.persistence.PersistenceException

, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException ... except for instances of NoResultException, NonUniqueResultException, LockTimeoutException
JPA Doc
9

javax.persistence.TypedQuery

. Execute a SELECT query that returns a single untyped result. Returns: the result Throws: NoResultException ... that returns a single result. Returns: the result Throws: NoResultException - if there is no result
JPA Doc
6

getSingleResult()

Method javax.persistence.Query Object getSingleResult() Execute a SELECT query that returns a single untyped result. Returns: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence