ObjectDB Database Search
1-17 of 17 resultsjakarta.persistence.NoResultException.NoResultException() Jakarta Persistence (JPA) Constructor in jakarta.persistence. NoResultException NoResultException () Constructs a new NoResultException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.NoResultException.NoResultException(String) Jakarta Persistence (JPA) Constructor in jakarta.persistence. NoResultException NoResultException ( String message ) Constructs a new NoResultException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0 | |
Criteria Query results in a NoResultException instead of returning object.RuntimeException: com.objectdb.o._ NoResultException : No matching results for a unique query at org.jboss.seam ... ._ NoResultException : No matching results for a unique query at com.objectdb.o.JPE.g(JPE.java:100 | |
Running JPA Queries Country object is found, a NoResultException is thrown. Therefore, use the getSingleResult () method | |
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 | |
jakarta.persistence.TypedQuery and the transaction is rolled back. NoResultException - if there is no result. PersistenceException - if the query | |
jakarta.persistence.TypedQuery.getSingleResult() fails and the transaction is rolled back. NoResultException - if there is no result | |
jakarta.persistence.StoredProcedureQuery.getSingleResult(): NoResultException - if there is no result in the next result set. NonUniqueResultException | |
Duplicate Entity class names causes Exception in Query ( NoResultException e) { return null; } } public long howManyItemsExist(EntityManager em) { TypedQuery q = em ... q.getSingleResult(); } catch (javax.persistence. NoResultException ex) { return -1; } } private ... . NoResultException ex) { return -1; } } I will attempt to reproduce this in | |
Mismatch client-server protocol prefix. NoResultException { Query q = em.createQuery("SELECT t FROM Unit ... .exceptions. NoResultException ("No unit found!", ex);   | |
Query can't see recently persisted object transaction. e.g. in the following code the NoResultException is correctly thrown on the first occasion ... ("here"); } MyObject myObject; try { myObject = query.getSingleResult(); } catch ( NoResultException ex | |
zip file or JAR manifest missing(); } catch ( NoResultException e) { item = new ItemList(); item.setTaskid(iTask); } I have to commit | |
First query before any of the object has been stored; NoResultException to be thrown, and coded to handle that as an empty result. What's really getting thrown | |
Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne).persistence. NoResultException ex) { return -1; } } } mport java.io.Serializable; import javax | |
Visibility of changes in Transaction is not visible to a JPA QL Query; return q.getSingleResult(); } catch (javax.persistence. NoResultException ex) {   | |
Cannot catch a PersistenceException and continue the transaction I try to create a factory that creates new objects just in case it doesn't find the relevant one in the DB. but because query.getSingleResult() fires NoResultException in that case it marks the transaction as one that need to be rolled back. I understood that I can overcome it in several ways | |
NullpointerException at a normal select(); } catch (javax.persistence. NoResultException nre) { } finally { em.close(); } I |