hibernate/hibernate-orm · error · MappingException
Could not instantiate collection persister %s
Error message
Could not instantiate collection persister %s
What it means
Error "Could not instantiate collection persister %s" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/persister/internal/PersisterFactoryImpl.java:146
}
catch (InvocationTargetException e) {
final Throwable target = e.getTargetException();
if ( target instanceof HibernateException hibernateException ) {
throw hibernateException;
}
else {
throw new MappingException(
String.format(
"Could not instantiate collection persister implementor `%s` for collection-role `%s`",
persisterClass.getName(),
collectionBinding.getRole()
),
target
);
}
}
catch (Exception e) {
throw new MappingException( "Could not instantiate collection persister " + persisterClass.getName(), e );
}
}
private Constructor<? extends CollectionPersister> resolveCollectionPersisterConstructor(Class<? extends CollectionPersister> persisterClass) {
try {
return persisterClass.getConstructor( COLLECTION_PERSISTER_CONSTRUCTOR_ARGS );
}
catch (NoSuchMethodException noConstructorException) {
throw new MappingException( "Could not find appropriate constructor for " + persisterClass.getName(), noConstructorException );
}
}
}
View on GitHub (pinned to fad1729dce)
Solutions
- Check the custom collection persister class for a compatible constructor and public visibility.
- Inspect the causal exception for the real instantiation error.
When it happens
Trigger: Hibernate bootstrap fails to create a configured custom implementation class.
Common situations: A custom persister/factory/resolver class is missing, non-public, or lacks the required constructor.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/43bdfa02de6a5fff.
Report an issue: GitHub.