{"record":{"id":"1e6b4981352a8071","repo":"hibernate/hibernate-orm","slug":"cannot-scroll-a-procedurecall","errorCode":null,"errorMessage":"Cannot scroll a ProcedureCall","messagePattern":"Cannot scroll a ProcedureCall","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java","lineNumber":1346,"sourceCode":"\t@Override\n\t@Nullable\n\tpublic <R1> List<R1> getResultList(@Nonnull Class<R1> type) {\n\t\tcheckNotClosed();\n\t\treturn results( output -> output.asResultSetOutput( type ).getResultList() );\n\t}\n\n\t@Override\n\t@Nullable\n\tpublic <R1> List<R1> getResultList(@Nonnull jakarta.persistence.sql.ResultSetMapping<R1> resultSetMapping) {\n\t\tcheckNotClosed();\n\t\treturn results( output -> output.asResultSetOutput( resultSetMapping ).getResultList() );\n\t}\n\n\t@Override\n\t@SuppressWarnings(\"removal\")\n\t@Nonnull\n\tpublic ScrollableResults<R> scroll(@Nonnull ScrollMode scrollMode) {\n\t\tthrow new UnsupportedOperationException( \"Cannot scroll a ProcedureCall\" );\n\t}\n\n\t@Override @Deprecated\n\t@SuppressWarnings(\"removal\")\n\t@Nonnull\n\tpublic Stream<R> getResultStream() {\n\t\treturn stream();\n\t}\n\n\t@Override @Deprecated\n\t@SuppressWarnings(\"removal\")\n\t@Nonnull\n\tpublic Stream<R> stream() {\n\t\tcheckNotClosed();\n\t\treturn getResultList().stream();\n\t}\n\n\t@Override","sourceCodeStart":1328,"sourceCodeEnd":1364,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java#L1328-L1364","documentation":"Error \"Cannot scroll a ProcedureCall\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate API is violated.","commonSituations":"Occurs when application code or configuration does not satisfy the documented contract of the API being called.","solutions":["Do not use ScrollableResults with ProcedureCall; collect results via getResultList() instead.","Refactor to a normal Query if scrolling is required."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}