项目启动报错如下:
2019-08-29 14:03:38.537 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-service-digest.log, appenderName=SYS-SERVICE-APPENDER, loggerName=SYS-SERVICE-DIGEST)[,] 2019-08-29 14:03:38.544 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-dal-digest.log, appenderName=SYS-DAL-APPENDER, loggerName=SYS-DAL-DIGEST)[,] 2019-08-29 14:03:38.546 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-sal-digest.log, appenderName=SYS-SAL-APPENDER, loggerName=SYS-SAL-DIGEST)[,] 2019-08-29 14:03:38.547 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-request-digest.log, appenderName=SYS-REQUEST-APPENDER, loggerName=SYS-REQUEST-DIGEST)[,] 2019-08-29 14:03:38.567 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-msg-digest.log, appenderName=SYS-MSG-APPENDER, loggerName=SYS-MSG-DIGEST)[,] 2019-08-29 14:03:38.569 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 添加摘要日志,digestLoggerConfig=DigestLoggerInitializerListener.DigestLoggerConfig(digestLogFilename=common-method-digest.log, appenderName=SYS-COMMON-APPENDER, loggerName=SYS-COMMON-DIGEST)[,] 2019-08-29 14:03:38.572 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - logback摘要日志文件初始化完成,loggingRoot=/usr/local/logs/medical,maxHistory=5[,] 2019-08-29 14:03:39.485 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$3405d00e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:39.640 [INFO ] [main] org.springframework.cloud.netflix.eureka.InstanceInfoFactory - Setting initial instance status as: STARTING[,] 2019-08-29 14:03:39.751 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Initializing Eureka in region us-east-1[,] 2019-08-29 14:03:40.093 [INFO ] [main] com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson[,] 2019-08-29 14:03:40.094 [INFO ] [main] com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson[,] 2019-08-29 14:03:40.621 [INFO ] [main] com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml[,] 2019-08-29 14:03:40.621 [INFO ] [main] com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml[,] 2019-08-29 14:03:41.205 [INFO ] [main] com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration[,] 2019-08-29 14:03:41.290 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Disable delta property : false[,] 2019-08-29 14:03:41.290 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null[,] 2019-08-29 14:03:41.290 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Force full registry fetch : false[,] 2019-08-29 14:03:41.291 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Application is null : false[,] 2019-08-29 14:03:41.291 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true[,] 2019-08-29 14:03:41.291 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Application version is -1: true[,] 2019-08-29 14:03:41.291 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server[,] 2019-08-29 14:03:42.189 [INFO ] [main] com.netflix.discovery.DiscoveryClient - The response status is 200[,] 2019-08-29 14:03:42.197 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Not registering with Eureka server per configuration[,] 2019-08-29 14:03:42.209 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Discovery Client initialized at timestamp 1567058622208 with initial instances count: 49[,] 2019-08-29 14:03:42.543 [INFO ] [main] com.qjbx.framework.core.log.DigestLoggerInitializerListener - 摘要日志已初始化[,] 2019-08-29 14:03:42.717 [INFO ] [main] org.springframework.cloud.config.client.ConfigServicePropertySourceLocator - Fetching config from server at : http://*。*。*。*:8763/[,] 2019-08-29 14:03:43.238 [WARN ] [main] org.springframework.cloud.config.client.ConfigServicePropertySourceLocator - Could not locate PropertySource: {"timestamp":1567058623205,"status":500,"error":"Internal Server Error","exception":"java.lang.IllegalStateException","message":"Cannot load environment","path":"/medical/test"}[,] 2019-08-29 14:03:43.244 [INFO ] [main] com.qjbx.QijianApplication - The following profiles are active: test[,] 2019-08-29 14:03:46.315 [INFO ] [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode![,] 2019-08-29 14:03:46.338 [INFO ] [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate - Bootstrapping Spring Data repositories in DEFAULT mode.[,] 2019-08-29 14:03:46.602 [INFO ] [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 185ms. Found 0 repository interfaces.[,] 2019-08-29 14:03:46.817 [WARN ] [main] org.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'bus-env' contains invalid characters, please migrate to a valid format.[,] 2019-08-29 14:03:46.824 [WARN ] [main] org.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'bus-refresh' contains invalid characters, please migrate to a valid format.[,] 2019-08-29 14:03:47.590 [WARN ] [main] org.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.[,] 2019-08-29 14:03:47.816 [WARN ] [main] org.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.[,] 2019-08-29 14:03:48.756 [INFO ] [main] org.springframework.cloud.context.scope.GenericScope - BeanFactory id=84462f22-7f07-3adb-aca8-250911692b31[,] 2019-08-29 14:03:48.827 [INFO ] [main] o.springframework.integration.config.DefaultConfiguringBeanFactoryPostProcessor - No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.[,] 2019-08-29 14:03:48.842 [INFO ] [main] o.springframework.integration.config.DefaultConfiguringBeanFactoryPostProcessor - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.[,] 2019-08-29 14:03:48.871 [INFO ] [main] o.springframework.integration.config.DefaultConfiguringBeanFactoryPostProcessor - No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.[,] 2019-08-29 14:03:48.896 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'digestLogAutoConfiguration' of type [com.qjbx.framework.core.log.DigestLogAutoConfiguration$$EnhancerBySpringCGLIB$$9054a14] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.124 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration' of type [org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$5bc666b5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.132 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'bindersHealthIndicator' of type [org.springframework.boot.actuate.health.CompositeHealthIndicator] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.133 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'bindersHealthIndicatorListener' of type [org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration$BindersHealthIndicatorListener] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.137 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.stream.binder.rabbit.config.ExtendedBindingHandlerMappingsProviderConfiguration' of type [org.springframework.cloud.stream.binder.rabbit.config.ExtendedBindingHandlerMappingsProviderConfiguration$$EnhancerBySpringCGLIB$$dcbb72a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.140 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'rabbitExtendedPropertiesDefaultMappingsProvider' of type [org.springframework.cloud.stream.binder.rabbit.config.ExtendedBindingHandlerMappingsProviderConfiguration$$Lambda$323/1492801385] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.200 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'BindingHandlerAdvise' of type [org.springframework.cloud.stream.config.BindingHandlerAdvise] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.214 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'spelConverter' of type [org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration$SpelConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.319 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'q-jobs-com.qjbx.conf.QjobsProperties' of type [com.qjbx.conf.QjobsProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.320 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'com.qjbx.conf.SchedulingConfiguration' of type [com.qjbx.conf.SchedulingConfiguration$$EnhancerBySpringCGLIB$$d156cac0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.331 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'zookeeperRegistryCenter' of type [org.springframework.beans.factory.support.NullBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:49.334 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$de578b3f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.201 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$17ebcd11] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.321 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.429 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$82dd8840] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.476 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$5e6f9360] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.508 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$97573c2d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.538 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:50.636 [INFO ] [main] o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$3405d00e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)[,] 2019-08-29 14:03:51.679 [INFO ] [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8136 (http)[,] 2019-08-29 14:03:51.718 [INFO ] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8136"][,] 2019-08-29 14:03:51.747 [INFO ] [main] org.apache.catalina.core.StandardService - Starting service [Tomcat][,] 2019-08-29 14:03:51.747 [INFO ] [main] org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.16][,] 2019-08-29 14:03:51.765 [INFO ] [main] org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib][,] 2019-08-29 14:03:51.978 [INFO ] [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext[,] 2019-08-29 14:03:51.978 [INFO ] [main] org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 8671 ms[,] 2019-08-29 14:03:52.455 [WARN ] [main] com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.[,] 2019-08-29 14:03:52.455 [INFO ] [main] com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.[,] 2019-08-29 14:03:52.521 [INFO ] [main] com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@4ac8768e[,] 2019-08-29 14:03:56.612 [INFO ] [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService[,] 2019-08-29 14:03:58.210 [INFO ] [main] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'[,] 2019-08-29 14:04:01.241 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.coredata.facade.MedicalPolicyFacade[,] 2019-08-29 14:04:01.324 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.medical.integration.prodcore.RewritePlatformCustomerEnterpriseFacade[,] 2019-08-29 14:04:01.397 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.medical.integration.prodcore.RewriteProductFacade[,] 2019-08-29 14:04:01.446 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.medical.integration.prodcore.RewriteProductSolutionFacade[,] 2019-08-29 14:04:01.489 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.medical.integration.prodcore.RewriteSolutionItemCalcFacade[,] 2019-08-29 14:04:01.558 [INFO ] [main] com.qjbx.framework.core.log.SalAutoProxyCreator - 创建sal代理对象,beanName=com.qjbx.medical.integration.insugateway.RewriteMedicalInsureFacade[,] 2019-08-29 14:04:01.575 [INFO ] [main] com.qjbx.framework.core.log.ServiceAutoProxyCreator - 创建service代理对象,beanName=medicalPolicyController[,] 2019-08-29 14:04:01.610 [WARN ] [main] o.s.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'medicalPolicyDownloadTask' defined in URL [jar:file:/home/admin/medical-1.0.0-SNAPSHOT.jar!/BOOT-INF/lib/medical-task-1.0.0-SNAPSHOT.jar!/com/qjbx/medical/task/MedicalPolicyDownloadTask.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: 此任务注册中心为空[,] 2019-08-29 14:04:01.613 [INFO ] [main] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'[,] 2019-08-29 14:04:01.662 [INFO ] [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService[,] 2019-08-29 14:04:01.683 [INFO ] [main] org.apache.catalina.core.StandardService - Stopping service [Tomcat][,] 2019-08-29 14:04:01.695 [WARN ] [main] org.apache.catalina.loader.WebappClassLoaderBase - The web application [ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:[,] 2019-08-29 14:04:01.698 [WARN ] [main] org.apache.catalina.loader.WebappClassLoaderBase - The web application [ROOT] appears to have started a thread named [RxIoScheduler-1 (Evictor)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park(Native Method) java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)[,] 2019-08-29 14:04:01.745 [INFO ] [main] o.s.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener - Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.[,] 2019-08-29 14:04:01.746 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Shutting down DiscoveryClient ...[,] 2019-08-29 14:04:01.761 [INFO ] [main] com.netflix.discovery.DiscoveryClient - Completed shut down of DiscoveryClient[,]
由于网络原因导致 读取远程配置失败,从而使得需要初始化的 定时任务(q-job)初始失败,从而导致了Tomacat启动失败!此处异常 直译虽然是可能为 内存泄漏,但还是根据实际情况具体分析!