Eason 就是根据这个配置的,EurekaApplicaiton、GatewayApplication、FolderApplication都正常,但是ControllerApplication这个报错,
所有的启动日志如下:
2022-06-15 08:42:36.435 INFO [,,,] 13340 --- [main] o.c.s.controller.ControllerApplication : The following profiles are active: sonic-server-controller,eureka,actuator,jdbc,feign,logging,knife4j,user
2022-06-15 08:42:37.529 WARN [,,,] 13340 --- [main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2022-06-15 08:42:37.789 INFO [,,,] 13340 --- [main] o.s.cloud.context.scope.GenericScope : BeanFactory id=dcb0a40c-e694-397a-8334-0b814ce97194
2022-06-15 08:42:38.479 WARN [,,,] 13340 --- [main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2022-06-15 08:42:38.496 INFO [,,,] 13340 --- [main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2022-06-15 08:42:38.496 INFO [,,,] 13340 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2039 ms
2022-06-15 08:42:38.641 WARN [,,,] 13340 --- [main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2022-06-15 08:42:38.641 INFO [,,,] 13340 --- [main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2022-06-15 08:42:38.649 INFO [,,,] 13340 --- [main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@6cc90398
2022-06-15 08:42:38.891 INFO [,,,] 13340 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2022-06-15 08:42:39.189 INFO [,,,] 13340 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2022-06-15 08:42:39.745 WARN [,,,] 13340 --- [main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "org.cloud.sonic.controller.models.domain.PublicStepsSteps".
2022-06-15 08:42:39.745 WARN [,,,] 13340 --- [main] c.b.m.core.injector.DefaultSqlInjector : class org.cloud.sonic.controller.models.domain.PublicStepsSteps ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2022-06-15 08:42:39.865 WARN [,,,] 13340 --- [main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "org.cloud.sonic.controller.models.domain.StepsElements".
2022-06-15 08:42:39.866 WARN [,,,] 13340 --- [main] c.b.m.core.injector.DefaultSqlInjector : class org.cloud.sonic.controller.models.domain.StepsElements ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2022-06-15 08:42:39.920 WARN [,,,] 13340 --- [main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "org.cloud.sonic.controller.models.domain.TestSuitesDevices".
2022-06-15 08:42:39.920 WARN [,,,] 13340 --- [main] c.b.m.core.injector.DefaultSqlInjector : class org.cloud.sonic.controller.models.domain.TestSuitesDevices ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2022-06-15 08:42:39.951 WARN [,,,] 13340 --- [main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "org.cloud.sonic.controller.models.domain.TestSuitesTestCases".
2022-06-15 08:42:39.951 WARN [,,,] 13340 --- [main] c.b.m.core.injector.DefaultSqlInjector : class org.cloud.sonic.controller.models.domain.TestSuitesTestCases ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2022-06-15 08:42:40.510 INFO [,,,] 13340 --- [main] o.c.s.c.config.mybatis.ClearForeignKey : transfer sql UPDATE QRTZ_JOB_DETAILS set JOB_CLASS_NAME='org.cloud.sonic.controller.quartz.QuartzJob' failed, ignore...
2022-06-15 08:42:41.112 INFO [,,,] 13340 --- [main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
2022-06-15 08:42:41.123 INFO [,,,] 13340 --- [main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2022-06-15 08:42:41.123 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created.
2022-06-15 08:42:41.128 INFO [,,,] 13340 --- [main] o.s.s.quartz.LocalDataSourceJobStore : Using db table-based data access locking (synchronization).
2022-06-15 08:42:41.129 INFO [,,,] 13340 --- [main] o.s.s.quartz.LocalDataSourceJobStore : JobStoreCMT initialized.
2022-06-15 08:42:41.130 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'SonicQuartz' with instanceId 'a20331RR1655253761115'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is clustered.
2022-06-15 08:42:41.130 INFO [,,,] 13340 --- [main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'SonicQuartz' initialized from an externally provided properties instance.
2022-06-15 08:42:41.130 INFO [,,,] 13340 --- [main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2
2022-06-15 08:42:41.131 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@6046fba0
2022-06-15 08:42:41.384 WARN [,,,] 13340 --- [main] o.s.c.openfeign.FeignClientFactoryBean : The provided URL is empty. Will try picking an instance via load-balancing.
2022-06-15 08:42:42.742 INFO [,,,] 13340 --- [main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator'
2022-06-15 08:42:42.864 INFO [,,,] 13340 --- [main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2ControllerWebMvc#getDocumentation(String, HttpServletRequest)]
2022-06-15 08:42:42.887 WARN [,,,] 13340 --- [main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2022-06-15 08:42:42.887 INFO [,,,] 13340 --- [main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2022-06-15 08:42:43.031 INFO [,,,] 13340 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2022-06-15 08:42:43.193 WARN [,,,] 13340 --- [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapContextSource' defined in class path resource [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method 'ldapContextSource' threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x2473b9ce) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x2473b9ce
2022-06-15 08:42:43.194 INFO [,,,] 13340 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2022-06-15 08:42:43.198 INFO [,,,] 13340 --- [main] o.s.s.quartz.SchedulerFactoryBean : Shutting down Quartz Scheduler
2022-06-15 08:42:43.199 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : Scheduler SonicQuartz$a20331RR1655253761115 shutting down.
2022-06-15 08:42:43.199 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : Scheduler SonicQuartz$a20331RR1655253761115 paused.
2022-06-15 08:42:43.199 INFO [,,,] 13340 --- [main] org.quartz.core.QuartzScheduler : Scheduler SonicQuartz$a20331RR1655253761115 shutdown complete.
2022-06-15 08:42:43.202 INFO [,,,] 13340 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2022-06-15 08:42:43.222 INFO [,,,] 13340 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2022-06-15 08:42:43.235 INFO [,,,] 13340 --- [main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-06-15 08:42:43.250 ERROR [,,,] 13340 --- [main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapContextSource' defined in class path resource [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method 'ldapContextSource' threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x2473b9ce) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x2473b9ce
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1341) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1181) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at org.cloud.sonic.controller.ControllerApplication.main(ControllerApplication.java:48) ~[classes/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method 'ldapContextSource' threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x2473b9ce) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x2473b9ce
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
... 20 common frames omitted
Caused by: java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x2473b9ce) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x2473b9ce
at org.springframework.ldap.core.support.AbstractContextSource.<clinit>(AbstractContextSource.java:77) ~[spring-ldap-core-2.3.3.RELEASE.jar:2.3.3.RELEASE]
at org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration.ldapContextSource(LdapAutoConfiguration.java:52) ~[spring-boot-autoconfigure-2.3.11.RELEASE.jar:2.3.11.RELEASE]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
... 21 common frames omitted