ObjectDB ObjectDB

Internal Website Search

1-10 of 28 resultsRefresh
162

Criteria Query results in a NoResultException instead of returning object

._NoResultException: No matching results for a unique query at org.jboss.seam.security.IdentityImpl ... by: com.objectdb.o._NoResultException: No matching results for a unique query at com.objectdb.o.JPE
135

NoResultException()

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

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
107

javax.persistence.NoResultException

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

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

Running JPA Queries

, if there are no results at all a NoResultException is thrown. Therefore, using getSingleResult requires
23

JPA Exceptions

javax.persistence.NoResultException javax.persistence
9

javax.persistence.PersistenceException

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

javax.persistence.TypedQuery

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
6

javax.persistence.Query

a single untyped result. Returns: the result Throws: NoResultException - if there is no result

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support