The exact same thing happened to me.

I am unable since a few days ago to do the docker compose of the image.

I have tried everything, download again the docker with the CAS 
Initializer, update the references and I have not achieved any progress.

Please someone to give us a hand please?

This is exactly the error I get:

mgmt-1  | 2024-07-02 12:55:28,633 TRACE 
[org.apereo.cas.config.CasCoreServicesConfiguration] - <Configuring service 
registry 
[CasServiceRegistryInitializationConfiguration$CasServiceRegistryEmbeddedConfiguration$$Lambda/0x00007fd1ac691228]>
mgmt-1  | 2024-07-02 12:55:28,633 TRACE 
[org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 
<Registering service registry [EmbeddedResourceBasedServiceRegistry] into 
the execution plan>
mgmt-1  | 2024-07-02 12:55:28,694 WARN 
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
 
- <Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'servicesManager' defined in class path resource 
[org/apereo/cas/mgmt/config/CasManagementCoreServicesConfiguration.class]: 
Failed to instantiate [org.apereo.cas.services.ChainingServicesManager]: 
Factory method 'servicesManager' threw exception with message: 
casProperties is marked non-null but is null>
mgmt-1  | 2024-07-02 12:55:28,694 TRACE 
[org.apereo.cas.util.io.PathWatcherService] - <Closing service registry 
watcher thread>
mgmt-1  | 2024-07-02 12:55:28,696 TRACE 
[org.apereo.cas.util.io.PathWatcherService] - <Closed service registry 
watcher thread>
mgmt-1  | 2024-07-02 12:55:28,705 TRACE 
[org.apereo.cas.util.io.PathWatcherService] - <null>
mgmt-1  | java.nio.file.ClosedWatchServiceException: null
mgmt-1  | at 
java.base/sun.nio.fs.AbstractWatchService.checkOpen(AbstractWatchService.java:80)
 
~[?:?]
mgmt-1  | at 
java.base/sun.nio.fs.AbstractWatchService.checkKey(AbstractWatchService.java:92)
 
~[?:?]
mgmt-1  | at 
java.base/sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:119) 
~[?:?]
mgmt-1  | at 
org.apereo.cas.util.io.PathWatcherService.run(PathWatcherService.java:72) 
~[cas-server-core-util-api-7.0.5.1.jar!/:7.0.5.1]
mgmt-1  | at java.base/java.lang.VirtualThread.run(VirtualThread.java:309) 
~[?:?]
mgmt-1  | 2024-07-02 12:55:28,742 INFO 
[org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLogger]
 
- <
mgmt-1  | 
mgmt-1  | Error starting ApplicationContext. To display the condition 
evaluation report re-run your application with 'debug' enabled.>
mgmt-1  | 2024-07-02 12:55:28,800 ERROR 
[org.springframework.boot.SpringApplication] - <Application run failed>
mgmt-1  | org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'servicesManager' defined in class path resource 
[org/apereo/cas/mgmt/config/CasManagementCoreServicesConfiguration.class]: 
Failed to instantiate [org.apereo.cas.services.ChainingServicesManager]: 
Factory method 'servicesManager' threw exception with message: 
casProperties is marked non-null but is null
mgmt-1  | at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1165)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
 
~[spring-context-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
 
~[spring-context-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
 
~[spring-boot-3.2.5.jar!/:3.2.5]
mgmt-1  | at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) 
~[spring-boot-3.2.5.jar!/:3.2.5]
mgmt-1  | at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
 
~[spring-boot-3.2.5.jar!/:3.2.5]
mgmt-1  | at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:334) 
~[spring-boot-3.2.5.jar!/:3.2.5]
mgmt-1  | at 
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)
 
~[spring-boot-3.2.5.jar!/:3.2.5]
mgmt-1  | at 
org.apereo.cas.mgmt.web.CasManagementWebApplication.main(CasManagementWebApplication.java:75)
 
~[cas-mgmt-webapp-init-7.0.0-SNAPSHOT.jar!/:7.0.0-SNAPSHOT]
mgmt-1  | at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 
~[?:?]
mgmt-1  | at java.base/java.lang.reflect.Method.invoke(Method.java:580) 
~[?:?]
mgmt-1  | at 
org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) 
~[cas-management.war:7.0.0-SNAPSHOT]
mgmt-1  | at 
org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53) 
~[cas-management.war:7.0.0-SNAPSHOT]
mgmt-1  | at 
org.springframework.boot.loader.launch.WarLauncher.main(WarLauncher.java:57) 
~[cas-management.war:7.0.0-SNAPSHOT]
mgmt-1  | Caused by: org.springframework.beans.BeanInstantiationException: 
Failed to instantiate [org.apereo.cas.services.ChainingServicesManager]: 
Factory method 'servicesManager' threw exception with message: 
casProperties is marked non-null but is null
mgmt-1  | at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | ... 23 more
mgmt-1  | Caused by: java.lang.NullPointerException: casProperties is 
marked non-null but is null
mgmt-1  | at 
org.apereo.cas.services.ServicesManagerConfigurationContext.<init>(ServicesManagerConfigurationContext.java:23)
 
~[cas-server-core-services-registry-7.0.5.1.jar!/:?]
mgmt-1  | at 
org.apereo.cas.services.ServicesManagerConfigurationContext$ServicesManagerConfigurationContextBuilderImpl.build(ServicesManagerConfigurationContext.java:23)
 
~[cas-server-core-services-registry-7.0.5.1.jar!/:?]
mgmt-1  | at 
org.apereo.cas.mgmt.config.CasManagementCoreServicesConfiguration.servicesManager(CasManagementCoreServicesConfiguration.java:156)
 
~[cas-mgmt-config-core-7.0.0-SNAPSHOT.jar!/:7.0.0-SNAPSHOT]
mgmt-1  | at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 
~[?:?]
mgmt-1  | at java.base/java.lang.reflect.Method.invoke(Method.java:580) 
~[?:?]
mgmt-1  | at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:140)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
 
~[spring-beans-6.1.6.jar!/:6.1.6]
mgmt-1  | ... 23 more

El jueves, 27 de junio de 2024 a las 11:35:15 UTC+2, Alejandro Rodriguez 
escribió:

>
> Hello, I am unable to start cas management ver 7.0. I get the following 
> error:
>
> ERROR [org.springframework.boot.SpringApplication] - <Application run 
> failed>
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'servicesManager' defined in class path resource
> [org/apereo/cas/mgmt/config/CasManagementCoreServicesConfiguration.class]: 
> Failed to instantiate [org.apereo.cas.services.ChainingServicesManager]:
> Factory method 'servicesManager' threw exception with message: 
> casProperties is marked non-null but is null
>
> I would appreciate if someone can help me, thank you
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/31d76d35-4a8e-4b34-811d-bf1dcb1434d2n%40apereo.org.

Reply via email to