Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
felixdo opened this issue Jan 3, 2024 · 2 comments
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@felixdo
Copy link

felixdo commented Jan 3, 2024

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 3, 2024
@mp911de mp911de self-assigned this Jan 22, 2024
@raduking
Copy link

raduking commented Mar 28, 2024

Same problem in Spring Boot 3.2.4 with Hibernate (+Envers) 6.4.4 Final:

2024-03-28 12:27:39.431 ERROR 75864 --- [ 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

@mp911de
Copy link
Member

mp911de commented Apr 2, 2024

This is a Hibernate problem, see spring-projects/spring-data-jpa#3381.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants