hibernate/hibernate-orm · error · PropertyNotFoundException
Could not resolve PropertyAccess for " + propertyName + "…
Error message
Could not resolve PropertyAccess for " + propertyName + " on " + containerJavaType
What it means
Chain-exhaustion guard in PropertyAccessStrategyChainedImpl: every strategy in the chain was tried (each candidate.buildPropertyAccess threw and was swallowed) and none could build access for the property. The faulty input is the (containerJavaType, propertyName) pair for which no chained strategy (basic field/property/map/...) applies; the cause of the last failure is implicit in the swallowed exceptions.
Solutions
- Ensure each element in the chained property path is non-null and resolvable.
- Verify intermediate embeddables/associations in the chain are mapped correctly.
Defensive patterns
Strategy: fallback
When it happens
Trigger: A name referenced in a mapping, query, or configuration cannot be resolved at runtime.
Common situations: Typos in entity/attribute/mapping names, missing mappings, or refactoring without updating references.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/a0e217ac5563cd23.
Report an issue: GitHub.
Appendix: source
Thrown at hibernate-core/src/main/java/org/hibernate/property/access/internal/PropertyAccessStrategyChainedImpl.java:33
public class PropertyAccessStrategyChainedImpl implements PropertyAccessStrategy {
private final PropertyAccessStrategy[] chain;
public PropertyAccessStrategyChainedImpl(PropertyAccessStrategy... chain) {
this.chain = chain;
}
@Override
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
for ( var candidate : chain ) {
try {
return candidate.buildPropertyAccess( containerJavaType, propertyName, true );
}
catch (Exception ignore) {
// ignore
}
}
throw new PropertyNotFoundException( "Could not resolve PropertyAccess for " + propertyName + " on " + containerJavaType );
}
}
View on GitHub (pinned to fad1729dce)