testlens-app[bot] commented on PR #16237: URL: https://github.com/apache/grails-core/pull/16237#issuecomment-5466820251
## 🚨 TestLens detected 49 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 \(annotation\)](https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237) > :grails-test-examples-spring-security-core-functional-test-app:integrationTest (first 40 of 44) | Test | Runs | Flakiness | |---|---|--:| | AnnotationSecuritySpec > authenticated user can access secured restful domain | ❌ | 0% 🟢 | | AnnotationSecuritySpec > check allowed for admin1 | ❌ | 0% 🟢 | | AnnotationSecuritySpec > check allowed for admin2 | ❌ | 0% 🟢 | | AnnotationSecuritySpec > create roles | ❌ | 0% 🟢 | | AnnotationSecuritySpec > create users | ❌ | 0% 🟢 | | AnnotationSecuritySpec > generated Resource controllers can have inherited secured actions | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing, <span>#</span>0] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/create, <span>#</span>3] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/delete, <span>#</span>5] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/edit, <span>#</span>4] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/index, <span>#</span>1] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/show/1, <span>#</span>2] | ❌ | 0% 🟢 | | AnnotationSecuritySpec > secured urls not visible without login | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: base/delete, <span>#</span>2] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: base/index, <span>#</span>0] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: base/update, <span>#</span>4] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: extended/delete, <span>#</span>3] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: extended/index, <span>#</span>1] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > should redirect to login page for anonymous > should redirect to login page for anonymous [uri: extended/update, <span>#</span>5] | ❌ | 0% 🟢 | | InheritanceSecuritySpec > verify security for other user | ❌ | 0% 🟢 | | InheritanceSecuritySpec > verify security for testuser | ❌ | 0% 🟢 | | NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous | ❌ | 0% 🟢 | | NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous > api/v1/books should redirect to login page for anonymous | ❌ | 0% 🟢 | | NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous > api/v1/books.json should redirect to login page for anonymous | ❌ | 0% 🟢 | | NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous > api/v1/movies should redirect to login page for anonymous | ❌ | 0% 🟢 | | NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous > api/v1/movies.json should redirect to login page for anonymous | ❌ | 0% 🟢 | | NamespaceSecuritySpec > api not allowed for testuser | ❌ | 0% 🟢 | | NamespaceSecuritySpec > api not allowed for testuser > api not allowed for testuser [format: , <span>#</span>0] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > api not allowed for testuser > api not allowed for testuser [format: .json, <span>#</span>1] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > namespaced controller with same name can have different secured annotations - open | ❌ | 0% 🟢 | | NamespaceSecuritySpec > namespaced controller with same name can have different secured annotations - secured | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books > verify security for testuser\_books [format: , <span>#</span>0] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books > verify security for testuser\_books [format: .json, <span>#</span>1] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books\_and\_movies | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books\_and\_movies > verify security for testuser\_books\_and\_movies [format: , <span>#</span>0] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_books\_and\_movies > verify security for testuser\_books\_and\_movies [format: .json, <span>#</span>1] | ❌ | 0% 🟢 | | NamespaceSecuritySpec > verify security for testuser\_movies | ❌ | 0% 🟢 | #### [CI / Spring Security Config Functional Tests \(basicCacheUsers\)](https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104101?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: 82fe9d898bb8210918920d3636d08540e1d91a14 ▶️ Tests: 3693 executed 🟡 Checks: 19/85 completed ### Test Failures (first 10 of 49) <details> <summary><strong>AnnotationSecuritySpec > authenticated user can access secured restful domain</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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>AnnotationSecuritySpec > check allowed for admin1</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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>AnnotationSecuritySpec > check allowed for admin2</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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>AnnotationSecuritySpec > create roles</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.c ontext.SpringBootTestAnnotation@cca8f031], 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:69) 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>AnnotationSecuritySpec > create users</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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>AnnotationSecuritySpec > generated Resource controllers can have inherited secured actions</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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>AnnotationSecuritySpec > restful domains can be secured</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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.extension.IDataDriver.lambda$static$0(IDataDriver.java:38) 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>AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing, <span>#</span>0]</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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.extension.IDataDriver.lambda$static$0(IDataDriver.java:38) 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>AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/create, <span>#</span>3]</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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.extension.IDataDriver.lambda$static$0(IDataDriver.java:38) 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>AnnotationSecuritySpec > restful domains can be secured > restful domains can be secured [action: thing/delete, <span>#</span>5]</strong> (:grails-test-examples-spring-security-core-functional-test-app:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33293499495/job/99209104112?pr=16237">CI / Spring Security Config Functional Tests (annotation)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1d39c3ce testClass = specs.AnnotationSecuritySpec, 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@498c535d, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@b0f2d91, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@794eeaf8, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.moc k.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@cca8f031], 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.extension.IDataDriver.lambda$static$0(IDataDriver.java:38) 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 (first 20 of 49) > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 AnnotationSecuritySpec > authenticated user can access secured restful domain <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_6] --> 🔲 AnnotationSecuritySpec > check allowed for admin1 <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_3] --> 🔲 AnnotationSecuritySpec > check allowed for admin2 <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_4] --> 🔲 AnnotationSecuritySpec > create roles <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_0] --> 🔲 AnnotationSecuritySpec > create users <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_1] --> 🔲 AnnotationSecuritySpec > generated Resource controllers can have inherited secured actions <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_7] --> 🔲 AnnotationSecuritySpec > restful domains can be secured <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_5] --> 🔲 AnnotationSecuritySpec > secured urls not visible without login <!-- uniqueId=[engine:spock]/[spec:specs.AnnotationSecuritySpec]/[feature:$spock_feature_2_2] --> 🔲 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] --> 🔲 InheritanceSecuritySpec > should redirect to login page for anonymous <!-- uniqueId=[engine:spock]/[spec:specs.InheritanceSecuritySpec]/[feature:$spock_feature_2_0] --> 🔲 InheritanceSecuritySpec > verify security for other user <!-- uniqueId=[engine:spock]/[spec:specs.InheritanceSecuritySpec]/[feature:$spock_feature_2_2] --> 🔲 InheritanceSecuritySpec > verify security for testuser <!-- uniqueId=[engine:spock]/[spec:specs.InheritanceSecuritySpec]/[feature:$spock_feature_2_1] --> 🔲 NamespaceSecuritySpec > <span>#</span>path should redirect to login page for anonymous <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_0] --> 🔲 NamespaceSecuritySpec > api not allowed for testuser <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_1] --> 🔲 NamespaceSecuritySpec > namespaced controller with same name can have different secured annotations - open <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_5] --> 🔲 NamespaceSecuritySpec > namespaced controller with same name can have different secured annotations - secured <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_6] --> 🔲 NamespaceSecuritySpec > verify security for testuser\_books <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_2] --> 🔲 NamespaceSecuritySpec > verify security for testuser\_books\_and\_movies <!-- uniqueId=[engine:spock]/[spec:specs.NamespaceSecuritySpec]/[feature:$spock_feature_2_4] --> 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]
