{"record":{"id":"4c27a99222b6c0b3","repo":"hibernate/hibernate-orm","slug":"tag-is-not-relevant-for-procedurecall","errorCode":null,"errorMessage":"tag + \" is not relevant for ProcedureCall\"","messagePattern":"tag \\+ \" is not relevant for ProcedureCall\"","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java","lineNumber":468,"sourceCode":"\t\tif ( value instanceof Integer code ) {\n\t\t\tmarkAsFunctionCall( code );\n\t\t}\n\t\telse if ( value instanceof Type<?> type ) {\n\t\t\tmarkAsFunctionCall( type );\n\t\t}\n\t\telse if ( value instanceof Class<?> type ) {\n\t\t\tmarkAsFunctionCall( type );\n\t\t}\n\t\telse if ( value instanceof String string ) {\n\t\t\tmarkAsFunctionCall( parseInt( string ) );\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException( \"Illegal value for hint '\" + hintName + \"'\" );\n\t\t}\n\t}\n\n\tprivate void irrelevantHint(String tag) {\n\t\tthrow new IllegalArgumentException( tag + \" is not relevant for ProcedureCall\" );\n\t}\n\n\t@Override\n\tprotected void applyReadOnlyHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Read-only\" );\n\t}\n\n\t@Override\n\tprotected void applyFetchSizeHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Fetch-size\" );\n\t}\n\n\t@Override\n\tprotected void applyResultCachingHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Result-caching\" );\n\t}\n\n\t@Override","sourceCodeStart":450,"sourceCodeEnd":486,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java#L450-L486","documentation":"Error \"tag + \" is not relevant for ProcedureCall\"\" thrown in hibernate/hibernate-orm.","triggerScenarios":"An API operation is invoked on an object that does not support it.","commonSituations":"Using query/procedure/proxy APIs beyond their supported feature set (e.g. scrolling, locking, unwrapping a procedure call).","solutions":["Remove setComment/setQueryHint tags that only apply to HQL queries from the procedure call.","Use a regular Query if you need to attach a comment tag."],"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"}