-
Notifications
You must be signed in to change notification settings - Fork 58
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
grails4.0.0RC1(rest-api) and audit-logging3.0.4 running error #189
Comments
Hibernate: insert into t_auth_Role (version, lastUpdatedBy, dateCreated, lastUpdated, authority, createdBy, authorityName) values (?, ?, ?, ?, ?, ?, ?) java.lang.IllegalArgumentException: Argument [audit log null user SYS INSERT middol.auth.Role id:1 version:0] is not an instance of [class middol.system.AuditLog] which this validator is configured for |
I got the same issue when upgrading to grails4 had to revert back to grails3. It seems the issue is that the 'createAuditLogDomainInstance' does not return a class that is an instance of the 'auditDomainClassName'. It would be nice to specify that the AuditLog can skip validation since the fields are created for us. |
Also having the same problem - is there a fix in the pipeline for this? |
I played around a bit with casting, but as the Audit Domain Class is dynamically built on a per-project base, I didn't find a solution, yet. Any idea is welcome. |
I tried out Jochen's fork and it worked on Grails 4. |
4.0.1 is released. |
hi Guys, error for images:
The text was updated successfully, but these errors were encountered: