hibernate/hibernate-orm · error · IllegalArgumentException
No @NamedStoredProcedureQuery was found with that name : {na
Error message
No @NamedStoredProcedureQuery was found with that name : {name} What it means
Error "No @NamedStoredProcedureQuery was found with that name : {name}" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java:2722
default:
SESSION_LOGGER.tracef( "Unsupported property : %s", propertyName );
break;
}
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Override
@Nonnull
public ProcedureCall createNamedStoredProcedureQuery(@Nonnull String name) {
checkOpen();
try {
final var memento =
getFactory().getQueryEngine().getNamedObjectRepository()
.getCallableQueryMemento( name );
if ( memento == null ) {
throw new IllegalArgumentException( "No @NamedStoredProcedureQuery was found with that name : " + name );
}
return memento.makeProcedureCall( this );
}
catch ( RuntimeException e ) {
throw getExceptionConverter().convert( e );
}
}
@Override
@Nonnull
public ProcedureCall createStoredProcedureQuery(@Nonnull String procedureName) {
try {
return createStoredProcedureCall( procedureName );
}
catch ( RuntimeException e ) {
throw getExceptionConverter().convert( e );
}
}View on GitHub (pinned to fad1729dce)
Solutions
- Define a @NamedStoredProcedureQuery with the given name on an entity in the persistence unit, or correct the name used in createNamedStoredProcedureQuery.
- Check for typos and ensure the entity declaring the named stored procedure is registered.
When it happens
Trigger: Thrown at hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java:2722 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/971e98476a724b8e.
Report an issue: GitHub.