Hitachi

uCosminexus Application Server Compatibility Guide


9.17.10 Exceptions thrown when queries are used

In Cosminexus JPA Provider, if there is a syntactic error in a query-related annotation, an exception occurs when the application is deployed. Also, if the arguments of the query-related method are invalid and if the specified string is not a valid JPQL string, the IllegalArgumentException exception occurs or the execution of the query fails.

If the query is not valid for the database query that uses a native query or if the defined result set is not compatible with the query result, the execution of the query fails. In Cosminexus JPA Provider, the PersistenceException exception is thrown during the execution of the query.

Organization of this subsection

(1) Exceptions thrown in the API functions of the query-related interfaces in EntityManager

The exceptions thrown in the API functions of the query-related interfaces in EntityManager are as follows:

(2) Exceptions thrown in the API functions of the Query interface

The exceptions thrown in the API functions of the Query interface are as follows:

For details on the API functions, see the Java documentation.