{"record":{"id":"33d820cdcd428cc6","repo":"hibernate/hibernate-orm","slug":"e-getmessage","errorCode":null,"errorMessage":"e.getMessage()","messagePattern":"e\\.getMessage\\(\\)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java","lineNumber":1235,"sourceCode":"\t\t\treturn getUpdateCount();\n\t\t}\n\t\tfinally {\n\t\t\tgetOutputs().release();\n\t\t}\n\t}\n\n\t@Override\n\tpublic Object getOutputParameterValue(int position) {\n\t\tcheckNotClosed();\n\t\t// According to spec, an exception thrown from this method should not mark for rollback.\n\t\ttry {\n\t\t\treturn getOutputs().getOutputParameterValue( position );\n\t\t}\n\t\tcatch (ParameterStrategyException e) {\n\t\t\tthrow new IllegalArgumentException( \"Invalid mix of named and positional parameters\", e );\n\t\t}\n\t\tcatch (NoSuchParameterException e) {\n\t\t\tthrow new IllegalArgumentException( e.getMessage(), e );\n\t\t}\n\t}\n\n\t@Override\n\tpublic Object getOutputParameterValue(@Nonnull String parameterName) {\n\t\tcheckNotClosed();\n\t\t// According to spec, an exception thrown from this method should not mark for rollback.\n\t\ttry {\n\t\t\treturn getOutputs().getOutputParameterValue( parameterName );\n\t\t}\n\t\tcatch (ParameterStrategyException e) {\n\t\t\tthrow new IllegalArgumentException( \"Invalid mix of named and positional parameters\", e );\n\t\t}\n\t\tcatch (NoSuchParameterException e) {\n\t\t\tthrow new IllegalArgumentException( e.getMessage(), e );\n\t\t}\n\t}\n","sourceCodeStart":1217,"sourceCodeEnd":1253,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java#L1217-L1253","documentation":"Spec-required translation in getOutputParameterValue(int): the underlying call raised NoSuchParameterException (no parameter registered at that position), rethrown as IllegalArgumentException carrying the original message. The faulty input is the position argument, which exceeds or misses the registered positional parameters.","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":["Inspect the wrapped exception message and stack trace for the underlying parameter binding error.","Ensure all IN parameters are bound before execution."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}