spring-data-examples icon indicating copy to clipboard operation
spring-data-examples copied to clipboard

Error when running jpa/envers: Illegal argument on static metamodel field injection

Open felixdo opened this issue 2 years ago • 0 comments

I got the same error when migrating my app from spring-boot 3.1.5 to 3.2.0 and found this example. The error is logged here too:

2024-01-03T19:09:17.359+01:00 ERROR 1451 --- [ main] o.h.metamodel.internal.MetadataContext : HHH015007: Illegal argument on static metamodel field injection : org.hibernate.envers.DefaultRevisionEntity_#class_; expected type : org.hibernate.metamodel.model.domain.internal.EntityTypeImpl; encountered type : jakarta.persistence.metamodel.MappedSuperclassType

See also my SO question: https://stackoverflow.com/questions/77753483/hibernate-envers-6-4-1-illegal-argument-on-static-metamodel-field-injection

felixdo avatar Jan 03 '24 18:01 felixdo