{"record":{"id":"2b6b5aa7b7d9c848","repo":"hibernate/hibernate-orm","slug":"illegal-value-for-hint-hintname","errorCode":null,"errorMessage":"Illegal value for hint '\" + hintName + \"'","messagePattern":"Illegal value for hint '\" \\+ hintName \\+ \"'","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java","lineNumber":444,"sourceCode":"\t\treturn this;\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic ProcedureCallImplementor<R> setHint(@Nonnull String hintName, @Nullable Object value) {\n\t\tcheckNotClosed();\n\t\tsuper.setHint( hintName, value );\n\t\treturn this;\n\t}\n\n\t@Override\n\tprotected void applyCallableFunctionHint(String hintName, Object value) {\n\t\tif ( value instanceof Boolean bool && bool\n\t\t\t|| value instanceof String string && parseBoolean( string ) ) {\n\t\t\tapplyCallableFunctionHint();\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException( \"Illegal value for hint '\" + hintName + \"'\" );\n\t\t}\n\t}\n\n\t@Override @SuppressWarnings(\"resource\")\n\tprotected void applyCallableFunctionTypeHint(String hintName, Object value) {\n\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 {","sourceCodeStart":426,"sourceCodeEnd":462,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java#L426-L462","documentation":"Error \"Illegal value for hint '\" + hintName + \"'\" 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":["Pass a value of the correct type for the hint (e.g. an integer for timeout hints).","Consult the hint documentation and convert the value accordingly."],"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"}