DefaultRevisionEntity: Illegal argument on static metamodel field injection

Description

When migrating to 6.4.1 (via spring-boot 3.2.1) I noted the error logged below. The error is also logged when I run DefaultAuditTest (https://github.com/hibernate/hibernate-orm/blob/main/hibernate-envers/src/test/java/org/hibernate/orm/test/envers/DefaultAuditTest.java )

 

I asked about this error question on SO before, but since I can now repro this with one (and probably more ) of your own test cases, it’s probably better recorded here.

Thanks for any comments/suggestions.

Activity

Show:

Amol Patil November 7, 2024 at 2:37 PM

I am encountering an issue in project for (SB 3.3.3 and java17 and hibernate 6.4) after adding following dependencies in pom, the issue seems to get resolved.

Brian Edwards August 30, 2024 at 8:28 PM

I get this error as well. No fix announced yet?? It makes it so auditing no longer works in the application. No new entries are being added to the auditing table. Tried various versions of envers with no luck. At this point I have to go to an older version of Spring Boot it appears to resolve this issue. Otherwise it will break production, we need auditing!!

ArkK August 14, 2024 at 6:56 AM

Nope, with sb 3.3.2 and hibernate 6.5.2 it is still here:-(

Thiago Oliveira July 10, 2024 at 10:18 PM

+1 with hibernate-envers 6.5.2.Final and Spring boot 3.3.1

Alan Givati May 1, 2024 at 6:22 PM

I ran into this problem also with hibernate-envers 6.4.4 Final.
I found the issue reported here:
With a test case here:

Fixed

Details

Assignee

Reporter

Labels

Worked in

Components

Sprint

Fix versions

Affects versions

Priority

Created January 3, 2024 at 6:46 PM
Updated March 17, 2025 at 2:37 PM
Resolved November 1, 2024 at 4:54 PM