cloud eurikaClient 启动异常 CommonAnnotationBeanPostProcessor scopedTarget.eurekaClient

注: 异常出现时,请仔细浏览异常信息,别盲目处理,每次异常都会从异常中暴露问题关键,定位到自己的错误,在解决更快捷

!!!!!!

 

启动信息:

2019-03-30 11:08:33.093 WARN 10004 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.RuntimeException: java.lang.NullPointerException

2019-03-30 11:08:33.095 INFO 10004 --- [ restartedMain] com.hazelcast.core.LifecycleService : [127.0.0.1]:13781 [dev] [3.9.1] [127.0.0.1]:13781 is SHUTTING_DOWN

2019-03-30 11:08:33.098 INFO 10004 --- [ restartedMain] com.hazelcast.instance.Node : [127.0.0.1]:13781 [dev] [3.9.1] Shutting down connection manager...

2019-03-30 11:08:33.101 INFO 10004 --- [ restartedMain] com.hazelcast.instance.Node : [127.0.0.1]:13781 [dev] [3.9.1] Shutting down node engine...

2019-03-30 11:08:33.116 INFO 10004 --- [ restartedMain] com.hazelcast.instance.NodeExtension : [127.0.0.1]:13781 [dev] [3.9.1] Destroying node NodeExtension.

2019-03-30 11:08:33.117 INFO 10004 --- [ restartedMain] com.hazelcast.instance.Node : [127.0.0.1]:13781 [dev] [3.9.1] Hazelcast Shutdown is completed in 19 ms.

2019-03-30 11:08:33.118 INFO 10004 --- [ restartedMain] com.hazelcast.core.LifecycleService : [127.0.0.1]:13781 [dev] [3.9.1] [127.0.0.1]:13781 is SHUTDOWN

2019-03-30 11:08:33.118 INFO 10004 --- [ restartedMain] m.s.ops.config.CacheConfiguration : Closing Cache Manager

2019-03-30 11:08:33.120 INFO 10004 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...

2019-03-30 11:08:33.124 WARN 10004 --- [ restartedMain] .s.c.a.CommonAnnotationBeanPostProcessor : Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

2019-03-30 11:08:33.185 ERROR 10004 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed

 

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.RuntimeException: java.lang.NullPointerException

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)

at me.supercube.ops.OpsGatewayApp.main(OpsGatewayApp.java:72)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

Caused by: java.lang.RuntimeException: java.lang.NullPointerException

at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:241)

at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.createDeploymentManager(UndertowEmbeddedServletContainerFactory.java:412)

at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.getEmbeddedServletContainer(UndertowEmbeddedServletContainerFactory.java:234)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)

... 11 common frames omitted

Caused by: java.lang.NullPointerException: null

at io.undertow.servlet.core.ManagedServlet.setupMultipart(ManagedServlet.java:107)

at io.undertow.servlet.spec.ServletRegistrationImpl.setMultipartConfig(ServletRegistrationImpl.java:117)

at org.springframework.boot.web.servlet.ServletRegistrationBean.configure(ServletRegistrationBean.java:217)

at org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:197)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:229)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:89)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:213)

at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory$Initializer.onStartup(UndertowEmbeddedServletContainerFactory.java:722)

at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:192)

at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:174)

at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:239)

... 15 common frames omitted

 

Disconnected from the target VM, address: '127.0.0.1:63229', transport: 'socket'

 

Process finished with exit code 0

问题位置:

定位 - 》 最后标红处: 配置问题 multipart 配置

 

debug 定位 .yml 中 multipart - > location 配置路径找不到 ,切换目录启动完成。 解决

注:每次异常出现,请详细查看信息打印!!!!!!

 

异常

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值