testlens-app[bot] commented on PR #16237:
URL: https://github.com/apache/grails-core/pull/16237#issuecomment-5471708284

   ## 🚨 TestLens detected 5 failed tests 🚨
   
   Here is what you can do:
   
   1) Inspect the test failures carefully.
   2) If you are convinced that some of the tests are flaky, you can mute them 
below.
   3) Finally, trigger a rerun by checking the rerun checkbox.
   
   ### Test Summary
   
   #### [CI / Spring Security Config Functional Tests 
\(basicCacheUsers\)](https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237)
 > 
:grails-test-examples-spring-security-core-functional-test-app:integrationTest
   
   | Test | Runs | Flakiness |
   |---|---|--:|
   | BasicAuthCacheUsersSecuritySpec > check userDetails caching | ❌ | 
0% 🟢 |
   | BasicAuthCacheUsersSecuritySpec > create roles | ❌ | 0% 🟢 |
   | BasicAuthCacheUsersSecuritySpec > create users | ❌ | 0% 🟢 |
   | RoleSpec > there are no roles initially | ❌ | 0% 🟢 |
   | UserSpec > there are no users initially | ❌ | 0% 🟢 |
   
   🏷️ Commit: b3d19557607528ef1669b8c0d439f1d65642c1fc
   ▶️ Tests:  2470 executed
   🟡 Checks: 22/85 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>BasicAuthCacheUsersSecuritySpec > check userDetails 
caching</strong> 
(:grails-test-examples-spring-security-core-functional-test-app:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237";>CI
 / Spring Security Config Functional Tests (basicCacheUsers)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
exceeded: skipping repeated attempt to load context for 
[WebMergedContextConfiguration@1777ef25 testClass = 
specs.BasicAuthCacheUsersSecuritySpec, locations = [], classes = 
[functional.test.app.Application], contextInitializerClasses = [], 
activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@32256e68,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@15986dd5,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@113ee1ce,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.
 spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@c058ce08], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:141)
        at 
grails.plugin.geb.GrailsContainerGebExtension.visitSpec_closure4(GrailsContainerGebExtension.groovy:105)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   ```
   
   </details>
   <details>
   
   <summary><strong>BasicAuthCacheUsersSecuritySpec > create roles</strong> 
(:grails-test-examples-spring-security-core-functional-test-app:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237";>CI
 / Spring Security Config Functional Tests (basicCacheUsers)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@1777ef25 testClass = 
specs.BasicAuthCacheUsersSecuritySpec, locations = [], classes = 
[functional.test.app.Application], contextInitializerClasses = [], 
activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@32256e68,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@15986dd5,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@113ee1ce,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.b
 oot.test.context.SpringBootTestAnnotation@c058ce08], resourceBasePath = 
"src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
        at 
org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:141)
        at 
grails.plugin.geb.GrailsContainerGebExtension.visitSpec_closure4(GrailsContainerGebExtension.groovy:105)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference 
to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:377)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:135)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1710)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1459)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1225)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1191)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:994)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621)
        at 
org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:113)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:464)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:453)
        at functional.test.app.Application.main(Application.groovy:29)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:281)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$1(SpringBootContextLoader.java:148)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.lambda$runMain$0(SpringBootContextLoader.java:593)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
        at 
org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.runMain(SpringBootContextLoader.java:592)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:143)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
        ... 20 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'groovyPageLocator': Unsatisfied dependency 
expressed through method 'setMimeTypeResolver' parameter 0: Error creating bean 
with name 'org.grails.plugins.web.mime.MimeTypesConfiguration': Unsatisfied 
dependency expressed through constructor parameter 1: Error creating bean with 
name 'jsonDataBindingSourceCreator': Unsatisfied dependency expressed through 
field 'jsonMapper': Error creating bean with name 'jacksonJsonMapper' defined 
in class path resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Unsatisfied dependency expressed through method 'jacksonJsonMapper' parameter 
0: Error creating bean with name 'jsonMapperBuilder' defined in class path 
resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Failed to instantiate [tools.jackson.databind.json.JsonMapper$Builder]: 
Factory method 'jsonMapperBuilder'
  threw exception with message: The method [public abstract 
java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:872)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:827)
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:146)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:493)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1444)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:365)
        ... 54 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 
'org.grails.plugins.web.mime.MimeTypesConfiguration': Unsatisfied dependency 
expressed through constructor parameter 1: Error creating bean with name 
'jsonDataBindingSourceCreator': Unsatisfied dependency expressed through field 
'jsonMapper': Error creating bean with name 'jacksonJsonMapper' defined in 
class path resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Unsatisfied dependency expressed through method 'jacksonJsonMapper' parameter 
0: Error creating bean with name 'jsonMapperBuilder' defined in class path 
resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Failed to instantiate [tools.jackson.databind.json.JsonMapper$Builder]: 
Factory method 'jsonMapperBuilder' threw exception with message: The method 
[public abstract java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getP
 ersistentEntities()] cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:804)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1380)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1360)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:229)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1769)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1658)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:864)
        ... 65 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'jsonDataBindingSourceCreator': Unsatisfied 
dependency expressed through field 'jsonMapper': Error creating bean with name 
'jacksonJsonMapper' defined in class path resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Unsatisfied dependency expressed through method 'jacksonJsonMapper' parameter 
0: Error creating bean with name 'jsonMapperBuilder' defined in class path 
resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Failed to instantiate [tools.jackson.databind.json.JsonMapper$Builder]: 
Factory method 'jsonMapperBuilder' threw exception with message: The method 
[public abstract java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:767)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:748)
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:146)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:493)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1444)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:229)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:2015)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1978)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeanCollection(DefaultListableBeanFactory.java:1870)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1840)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1718)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1658)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:912)
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 87 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'jacksonJsonMapper' defined in class path 
resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Unsatisfied dependency expressed through method 'jacksonJsonMapper' parameter 
0: Error creating bean with name 'jsonMapperBuilder' defined in class path 
resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Failed to instantiate [tools.jackson.databind.json.JsonMapper$Builder]: 
Factory method 'jsonMapperBuilder' threw exception with message: The method 
[public abstract java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:804)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:546)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1360)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:229)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1769)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1658)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:764)
        ... 106 more
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'jsonMapperBuilder' defined in class path resource 
[org/springframework/boot/jackson/autoconfigure/JacksonAutoConfiguration.class]:
 Failed to instantiate [tools.jackson.databind.json.JsonMapper$Builder]: 
Factory method 'jsonMapperBuilder' threw exception with message: The method 
[public abstract java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1360)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:351)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:229)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1769)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1658)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:912)
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 119 more
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [tools.jackson.databind.json.JsonMapper$Builder]: Factory method 
'jsonMapperBuilder' threw exception with message: The method [public abstract 
java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:183)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:72)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:152)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
        ... 131 more
   Caused by: org.grails.core.exceptions.GrailsConfigurationException: The 
method [public abstract java.util.Collection 
org.grails.datastore.mapping.model.MappingContext.getPersistentEntities()] 
cannot be accessed before GORM has initialized
        at 
grails.core.DefaultGrailsApplication$1.invoke(DefaultGrailsApplication.java:123)
        at 
org.grails.web.converters.jackson.GrailsJsonMapperCustomizer.customize(GrailsJsonMapperCustomizer.java:72)
        at 
org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration.lambda$jsonMapperBuilder$0(JacksonAutoConfiguration.java:128)
        at 
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
        at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:261)
        at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:261)
        at 
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
        at 
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at 
java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at 
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at 
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at 
java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at 
org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration.jsonMapperBuilder(JacksonAutoConfiguration.java:128)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:155)
        ... 134 more
   ```
   
   </details>
   <details>
   
   <summary><strong>BasicAuthCacheUsersSecuritySpec > create users</strong> 
(:grails-test-examples-spring-security-core-functional-test-app:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237";>CI
 / Spring Security Config Functional Tests (basicCacheUsers)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
exceeded: skipping repeated attempt to load context for 
[WebMergedContextConfiguration@1777ef25 testClass = 
specs.BasicAuthCacheUsersSecuritySpec, locations = [], classes = 
[functional.test.app.Application], contextInitializerClasses = [], 
activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@32256e68,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@15986dd5,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@113ee1ce,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.
 spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@c058ce08], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:141)
        at 
grails.plugin.geb.GrailsContainerGebExtension.visitSpec_closure4(GrailsContainerGebExtension.groovy:105)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   ```
   
   </details>
   <details>
   
   <summary><strong>RoleSpec > there are no roles initially</strong> 
(:grails-test-examples-spring-security-core-functional-test-app:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237";>CI
 / Spring Security Config Functional Tests (basicCacheUsers)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
exceeded: skipping repeated attempt to load context for 
[WebMergedContextConfiguration@43741fbb testClass = specs.RoleSpec, locations = 
[], classes = [functional.test.app.Application], contextInitializerClasses = 
[], activeProfiles = [], propertySourceDescriptors = [], 
propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@32256e68,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@15986dd5,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@113ee1ce,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.spring.mock.SpockContex
 tCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@c058ce08], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:141)
        at 
grails.plugin.geb.GrailsContainerGebExtension.visitSpec_closure4(GrailsContainerGebExtension.groovy:105)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   ```
   
   </details>
   <details>
   
   <summary><strong>UserSpec > there are no users initially</strong> 
(:grails-test-examples-spring-security-core-functional-test-app:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/33339471558/job/99332361827?pr=16237";>CI
 / Spring Security Config Functional Tests (basicCacheUsers)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
exceeded: skipping repeated attempt to load context for 
[WebMergedContextConfiguration@7ebc160d testClass = specs.UserSpec, locations = 
[], classes = [functional.test.app.Application], contextInitializerClasses = 
[], activeProfiles = [], propertySourceDescriptors = [], 
propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@32256e68,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@15986dd5,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@113ee1ce,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.spring.mock.SpockContex
 tCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@c058ce08], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:141)
        at 
grails.plugin.geb.GrailsContainerGebExtension.visitSpec_closure4(GrailsContainerGebExtension.groovy:105)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:139)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   ```
   
   </details>
   
   ### Rerun Controls
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 BasicAuthCacheUsersSecuritySpec > check userDetails caching <!-- 
uniqueId=[engine:spock]/[spec:specs.BasicAuthCacheUsersSecuritySpec]/[feature:$spock_feature_2_2]
 -->
   🔲 BasicAuthCacheUsersSecuritySpec > create roles <!-- 
uniqueId=[engine:spock]/[spec:specs.BasicAuthCacheUsersSecuritySpec]/[feature:$spock_feature_2_0]
 -->
   🔲 BasicAuthCacheUsersSecuritySpec > create users <!-- 
uniqueId=[engine:spock]/[spec:specs.BasicAuthCacheUsersSecuritySpec]/[feature:$spock_feature_2_1]
 -->
   🔲 RoleSpec > there are no roles initially <!-- 
uniqueId=[engine:spock]/[spec:specs.RoleSpec]/[feature:$spock_feature_2_0] -->
   🔲 UserSpec > there are no users initially <!-- 
uniqueId=[engine:spock]/[spec:specs.UserSpec]/[feature:$spock_feature_2_0] -->
   
   Reuse successful test results:
   
   🔲 ♻️ Only rerun the tests that failed or were muted before
   
   Click the checkbox to trigger a rerun:
   
   🔲 **Rerun jobs**
   
   ---
   _Learn more about TestLens at 
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to