testlens-app[bot] commented on PR #16237: URL: https://github.com/apache/grails-core/pull/16237#issuecomment-5471795255
## 🚨 TestLens detected 10 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 CAS Functional Tests \(casProxy\)](https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237) > :grails-test-examples-spring-security-cas-test1:integrationTest | Test | Runs | Flakiness | |---|---|--:| | CasLoginSpec > a user authenticated at CAS reaches a ROLE\_USER action | ❌ | 0% 🟢 | | CasLoginSpec > a user without the role is denied a ROLE\_ADMIN action | ❌ | 0% 🟢 | | CasLoginSpec > an admin authenticated at CAS reaches a ROLE\_ADMIN action | ❌ | 0% 🟢 | | CasLoginSpec > an unauthenticated request is redirected to the CAS login page for this service | ❌ | 0% 🟢 | | CasLoginSpec > bad credentials do not authenticate | ❌ | 0% 🟢 | | CasProxyTicketSpec > a normal CAS login still works with proxy settings configured | ❌ | 0% 🟢 | | CasProxyTicketSpec > a proxy ticket can be obtained for the logged-in user | ❌ | 0% 🟢 | | CasProxyTicketSpec > the receptor path is consumed by the CAS filter rather than the application | ❌ | 0% 🟢 | | CasSingleSignOutSpec > a CAS logout request invalidates the session that the service ticket authenticated | ❌ | 0% 🟢 | | CasSingleSignOutSpec > a logout request for an unrelated ticket leaves the session alone | ❌ | 0% 🟢 | 🏷️ Commit: 28b60ec98b7a02f1f36c51d7227c23be98c4e4a4 ▶️ Tests: 2456 executed 🟡 Checks: 17/84 completed ### Test Failures <details> <summary><strong>CasLoginSpec > a user authenticated at CAS reaches a ROLE_USER action</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@5ccc3cce testClass = grails.plugin.springsecurity.cas.test.CasLoginSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesContextCu stomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasLoginSpec > a user without the role is denied a ROLE_ADMIN action</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@5ccc3cce testClass = grails.plugin.springsecurity.cas.test.CasLoginSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesContextCu stomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasLoginSpec > an admin authenticated at CAS reaches a ROLE_ADMIN action</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@5ccc3cce testClass = grails.plugin.springsecurity.cas.test.CasLoginSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesContextCu stomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasLoginSpec > an unauthenticated request is redirected to the CAS login page for this service</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@5ccc3cce testClass = grails.plugin.springsecurity.cas.test.CasLoginSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.spockframework.spring.mock.SpockContextCust omizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 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 grails.plugin.springsecurity.cas.test.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) ... 17 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) ... 51 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) ... 62 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) ... 84 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) ... 103 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) ... 116 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) ... 128 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:75) 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) ... 131 more ``` </details> <details> <summary><strong>CasLoginSpec > bad credentials do not authenticate</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@5ccc3cce testClass = grails.plugin.springsecurity.cas.test.CasLoginSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesContextCu stomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasProxyTicketSpec > a normal CAS login still works with proxy settings configured</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@341a25da testClass = grails.plugin.springsecurity.cas.test.CasProxyTicketSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesCon textCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasProxyTicketSpec > a proxy ticket can be obtained for the logged-in user</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@341a25da testClass = grails.plugin.springsecurity.cas.test.CasProxyTicketSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesCon textCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasProxyTicketSpec > the receptor path is consumed by the CAS filter rather than the application</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@341a25da testClass = grails.plugin.springsecurity.cas.test.CasProxyTicketSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesCon textCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasSingleSignOutSpec > a CAS logout request invalidates the session that the service ticket authenticated</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@7f03fef2 testClass = grails.plugin.springsecurity.cas.test.CasSingleSignOutSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesC ontextCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ``` </details> <details> <summary><strong>CasSingleSignOutSpec > a logout request for an unrelated ticket leaves the session alone</strong> (:grails-test-examples-spring-security-cas-test1:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/33340316630/job/99334698567?pr=16237">CI / Spring Security CAS Functional Tests (casProxy)</a>)</summary> ``` java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@7f03fef2 testClass = grails.plugin.springsecurity.cas.test.CasSingleSignOutSpec, locations = [], classes = [grails.plugin.springsecurity.cas.test.Application], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6badba10, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3eb3232b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6d099323, org.springframework.test.context.support.DynamicPropertiesC ontextCustomizer@0, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@37c5ed71], 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 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: 🔲 CasLoginSpec > a user authenticated at CAS reaches a ROLE\_USER action <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasLoginSpec]/[feature:$spock_feature_1_1] --> 🔲 CasLoginSpec > a user without the role is denied a ROLE\_ADMIN action <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasLoginSpec]/[feature:$spock_feature_1_3] --> 🔲 CasLoginSpec > an admin authenticated at CAS reaches a ROLE\_ADMIN action <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasLoginSpec]/[feature:$spock_feature_1_2] --> 🔲 CasLoginSpec > an unauthenticated request is redirected to the CAS login page for this service <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasLoginSpec]/[feature:$spock_feature_1_0] --> 🔲 CasLoginSpec > bad credentials do not authenticate <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasLoginSpec]/[feature:$spock_feature_1_4] --> 🔲 CasProxyTicketSpec > a normal CAS login still works with proxy settings configured <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasProxyTicketSpec]/[feature:$spock_feature_1_2] --> 🔲 CasProxyTicketSpec > a proxy ticket can be obtained for the logged-in user <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasProxyTicketSpec]/[feature:$spock_feature_1_0] --> 🔲 CasProxyTicketSpec > the receptor path is consumed by the CAS filter rather than the application <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasProxyTicketSpec]/[feature:$spock_feature_1_1] --> 🔲 CasSingleSignOutSpec > a CAS logout request invalidates the session that the service ticket authenticated <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasSingleSignOutSpec]/[feature:$spock_feature_1_0] --> 🔲 CasSingleSignOutSpec > a logout request for an unrelated ticket leaves the session alone <!-- uniqueId=[engine:spock]/[spec:grails.plugin.springsecurity.cas.test.CasSingleSignOutSpec]/[feature:$spock_feature_1_1] --> 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]
