{"record":{"id":"cb77eb70ad3d328a","repo":"hibernate/hibernate-orm","slug":"illegalargumentexception-occurred-calling","errorCode":null,"errorMessage":"IllegalArgumentException occurred calling","messagePattern":"IllegalArgumentException occurred calling","errorType":"exception","errorClass":"PropertyAccessException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/property/access/spi/GetterMethodImpl.java","lineNumber":69,"sourceCode":"\t\t\t\t\t\"Exception occurred inside\",\n\t\t\t\t\tfalse,\n\t\t\t\t\tcontainerClass,\n\t\t\t\t\tpropertyName\n\t\t\t);\n\t\t}\n\t\tcatch (IllegalAccessException iae) {\n\t\t\tthrow new PropertyAccessException(\n\t\t\t\t\tiae,\n\t\t\t\t\t\"IllegalAccessException occurred while calling\",\n\t\t\t\t\tfalse,\n\t\t\t\t\tcontainerClass,\n\t\t\t\t\tpropertyName\n\t\t\t);\n\t\t\t//cannot occur\n\t\t}\n\t\tcatch (IllegalArgumentException iae) {\n\t\t\tCORE_LOGGER.illegalPropertyGetterArgument( containerClass.getName(), propertyName );\n\t\t\tthrow new PropertyAccessException(\n\t\t\t\t\tiae,\n\t\t\t\t\t\"IllegalArgumentException occurred calling\",\n\t\t\t\t\tfalse,\n\t\t\t\t\tcontainerClass,\n\t\t\t\t\tpropertyName\n\t\t\t);\n\t\t}\n\t}\n\n\t@Override\n\tpublic @Nullable Object getForInsert(Object owner, Map<Object, Object> mergeMap, SharedSessionContractImplementor session) {\n\t\treturn get( owner );\n\t}\n\n\t@Override\n\tpublic Class<?> getReturnTypeClass() {\n\t\treturn getterMethod.getReturnType();\n\t}","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/property/access/spi/GetterMethodImpl.java#L51-L87","documentation":"Error \"IllegalArgumentException occurred calling\" 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":["Ensure the getter is invoked on an instance of the correct declaring class.","Check for proxy/subclass mismatches between the mapped class and the runtime object."],"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"}