hibernate/hibernate-orm · error · UnsupportedOperationException
Cannot scroll a ProcedureCall
Error message
Cannot scroll a ProcedureCall
What it means
Error "Cannot scroll a ProcedureCall" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java:1346
@Override
@Nullable
public <R1> List<R1> getResultList(@Nonnull Class<R1> type) {
checkNotClosed();
return results( output -> output.asResultSetOutput( type ).getResultList() );
}
@Override
@Nullable
public <R1> List<R1> getResultList(@Nonnull jakarta.persistence.sql.ResultSetMapping<R1> resultSetMapping) {
checkNotClosed();
return results( output -> output.asResultSetOutput( resultSetMapping ).getResultList() );
}
@Override
@SuppressWarnings("removal")
@Nonnull
public ScrollableResults<R> scroll(@Nonnull ScrollMode scrollMode) {
throw new UnsupportedOperationException( "Cannot scroll a ProcedureCall" );
}
@Override @Deprecated
@SuppressWarnings("removal")
@Nonnull
public Stream<R> getResultStream() {
return stream();
}
@Override @Deprecated
@SuppressWarnings("removal")
@Nonnull
public Stream<R> stream() {
checkNotClosed();
return getResultList().stream();
}
@OverrideView on GitHub (pinned to fad1729dce)
Solutions
- Do not use ScrollableResults with ProcedureCall; collect results via getResultList() instead.
- Refactor to a normal Query if scrolling is required.
When it happens
Trigger: A runtime precondition of the Hibernate API is violated.
Common situations: Occurs when application code or configuration does not satisfy the documented contract of the API being called.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/1e6b4981352a8071.
Report an issue: GitHub.