hibernate/hibernate-orm · error · PropertyAccessException
IllegalAccessException occurred while calling
Error message
IllegalAccessException occurred while calling
What it means
Error "IllegalAccessException occurred while calling" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/property/access/spi/SetterMethodImpl.java:77
);
}
}
catch (InvocationTargetException ite) {
final var cause = ite.getCause();
if ( cause instanceof Error error ) {
// HHH-16403 Don't wrap Error
throw error;
}
throw new PropertyAccessException(
cause,
"Exception occurred inside",
true,
containerClass,
propertyName
);
}
catch (IllegalAccessException iae) {
throw new PropertyAccessException(
iae,
"IllegalAccessException occurred while calling",
true,
containerClass,
propertyName
);
//cannot occur
}
catch (IllegalArgumentException iae) {
if ( value == null && isPrimitive ) {
throw new PropertyAccessException(
iae,
"Null value was assigned to a property of primitive type",
true,
containerClass,
propertyName
);
}View on GitHub (pinned to fad1729dce)
Solutions
- Make the setter method public or accessible to Hibernate.
- Open the containing package/module for reflective access.
When it happens
Trigger: A runtime precondition of the Hibernate API is violated.
Common situations: Occurs when application code or configuration does not satisfy the documented contract of the API being called.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/d623f34f81e78dee.
Report an issue: GitHub.