gpc / grails-audit-logging-plugin

The Grails Audit Logging Plugin
Apache License 2.0
50 stars 60 forks source link

Error after upgrading from 2.x to 3.0.2 on Grails 3.3.9 #177

Closed mnellemann closed 5 years ago

mnellemann commented 5 years ago

Hi,

I've upgraded the plugin from 2.0.6 to 3.0.2, and refactored my domains to use the new traits. Everything builds, but when I try to run the grails app, the following errors happens:

2019-01-01 14:38:16.069  INFO --- [           main] ajour.Application                        : Starting Application on t480s with PID 18509 (/home/mark/Projects/mintr-portal/build/classes/main started by mark in /home/mark/Projects/mintr-portal)
2019-01-01 14:38:16.072 DEBUG --- [           main] ajour.Application                        : Running with Spring Boot v1.5.18.RELEASE, Spring v4.3.21.RELEASE
2019-01-01 14:38:16.072  INFO --- [           main] ajour.Application                        : The following profiles are active: development

Configuring Spring Security Core ...
... finished configuring Spring Security Core

2019-01-01 14:38:22.019 ERROR --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method 'methodValidationPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastoreServiceRegistry': Cannot resolve reference to bean 'hibernateDatastore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception; nested exception is java.lang.NullPointerException

I am using spring security and gorm multi tenancy. Any ideas what might be wrong ?

Best regards, Mark

robertoschwald commented 5 years ago

Please ask in Grails Slack community. This is not a support forum.