Closed khurry closed 2 weeks ago
We need to check this after fixing the https://github.com/jmix-framework/jmix/issues/287
Tested on Jmix version: 1.6.999-SNAPSHOT: 1) Jmix Studio plugin version: 2.4.SNAPSHOT6960-242 IntelliJ version: IntelliJ IDEA 2024.2.4 (Community Edition) 2) Jmix Studio plugin version: 2.5.SNAPSHOT6966-243 IntelliJ version: IntelliJ IDEA 2024.3 (Community Edition)
Tested in jmix 1.4.1 and 1.4.4 Case:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testBean' Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'io.jmix.security.SecurityConfiguration': Unsatisfied dependency expressed through field 'sessionRegistry'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sec_SessionRegistry': Requested bean is currently in creation: Is there an unresolvable circular reference?
Looks like SecurityConfiguration can't be instantiated because it contains sessionRegistry autowired itself.