请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

您好,我问一下。zipkin能够访问,但是gateway服务在连接zipkin失败

回答2 浏览103 2020-10-10 21:07:21

报错内容如下(maven打包gateway服务时候的报错):
报错日志如下:
2020-10-10 21:00:57.219 DEBUG [jwgateway-server,] 14792 — [Sender@85ab964}] org.springframework.web.HttpLogging : Writing [[B@18067aa9] as "application/json"
2020-10-10 21:00:57.233 DEBUG [jwgateway-server,] 14792 — [Sender@85ab964}] org.springframework.web.HttpLogging : Response 202 ACCEPTED
2020-10-10 21:00:57.240 INFO [jwgateway-server,] 14792 — [ Thread-6] c.n.u.concurrent.ShutdownEnabledTimer : Shutdown hook removed for: NFLoadBalancer-PingTimer
-jwdemo
2020-10-10 21:00:57.247 INFO [jwgateway-server,] 14792 — [ Thread-6] c.n.u.concurrent.ShutdownEnabledTimer : Exception caught (might be ok if at shutdown)

java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) ~[na:1.8.0_92]
at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[na:1.8.0_92]
at com.netflix.util.concurrent.ShutdownEnabledTimer.cancel(ShutdownEnabledTimer.java:70) ~[netflix-commons-util-0.3.0.jar:0.3.0]
at com.netflix.loadbalancer.BaseLoadBalancer.cancelPingTask(BaseLoadBalancer.java:632) [ribbon-loadbalancer-2.3.0.jar:2.3.0]
at com.netflix.loadbalancer.BaseLoadBalancer.shutdown(BaseLoadBalancer.java:883) [ribbon-loadbalancer-2.3.0.jar:2.3.0]
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.shutdown(DynamicServerListLoadBalancer.java:285) [ribbon-loadbalancer-2.3.0.jar:2.3.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:339) [spring-beans-5.1.13.RELEASE.jar:5.1.13.R
ELEASE]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:273) [spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) [spring-beans-5.1.13.RELEASE.jar:5.1.13.R
ELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) [spring-beans-5.1.13.RELEASE.jar:5.1
.13.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1040) [spring-beans-5.1.13.RELEASE.jar:5.1.13
.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) [spring-beans-5.1.13.RELEASE.jar:5.
1.13.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1033) [spring-beans-5.1.13.RELEASE.jar:5.1.1
3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE
]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.cloud.context.named.NamedContextFactory.destroy(NamedContextFactory.java:92) [spring-cloud-context-2.1.5.RELEASE.jar:2.1.5.RELEASE]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:258) [spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) [spring-beans-5.1.13.RELEASE.jar:5.1.13.R
ELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) [spring-beans-5.1.13.RELEASE.jar:5.1
.13.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1040) [spring-beans-5.1.13.RELEASE.jar:5.1.13
.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) [spring-beans-5.1.13.RELEASE.jar:5.
1.13.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1033) [spring-beans-5.1.13.RELEASE.jar:5.1.1
3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE
]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE]

添加回答

2回答

  • 2020-10-10 21:00:57.219 DEBUG [jwgateway-server,,,] 14792 --- [Sender@85ab964}] org.springframework.web.HttpLogging      : Writing [[B@18067aa9] as "application/json"2020-10-10 21:00:57.233 DEBUG [jwgateway-server,,,] 14792 --- [Sender@85ab964}] org.springframework.web.HttpLogging      : Response 202 ACCEPTED2020-10-10 21:00:57.240  INFO [jwgateway-server,,,] 14792 --- [       Thread-6] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook removed for: NFLoadBalancer-PingTimer-jwdemo2020-10-10 21:00:57.247  INFO [jwgateway-server,,,] 14792 --- [       Thread-6] c.n.u.concurrent.ShutdownEnabledTimer    : Exception caught (might be ok if at shutdown)java.lang.IllegalStateException: Shutdown in progress        at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) ~[na:1.8.0_92]        at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[na:1.8.0_92]        at com.netflix.util.concurrent.ShutdownEnabledTimer.cancel(ShutdownEnabledTimer.java:70) ~[netflix-commons-util-0.3.0.jar:0.3.0]        at com.netflix.loadbalancer.BaseLoadBalancer.cancelPingTask(BaseLoadBalancer.java:632) [ribbon-loadbalancer-2.3.0.jar:2.3.0]        at com.netflix.loadbalancer.BaseLoadBalancer.shutdown(BaseLoadBalancer.java:883) [ribbon-loadbalancer-2.3.0.jar:2.3.0]        at com.netflix.loadbalancer.DynamicServerListLoadBalancer.shutdown(DynamicServerListLoadBalancer.java:285) [ribbon-loadbalancer-2.3.0.jar:2.3.0]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]        at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:339) [spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]        at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:273) [spring-beans-5.1.13.RELEASE....
    2020-10-10 21:13:51

基于SpringCloud+Kubernetes ,微服务的容器化持续交付实战

难度中级
时长11小时
人数218
好评度100%

Spring Cloud+Jenkins+Kubernetes实战,学习业界领先的持续交付方案

讲师

清风 架构师

清风老师,中国信通院 DevOps标准工作组评委会成员,有超过12年的软件研发和大型企业落地持续交付的经验,主导了HPE Cloud 云平台的研发和架构。负责大型互联网教育平台的后台系统的架构,落地云计算和 DevOps 平台的研发和架构。GOPS 全球运维大会金牌讲师,多次在国内各大技术社区发表文章和演讲,例如 InfoQ,高效运维,DBAPlus,51CTO 等等。

意见反馈 帮助中心 APP下载
官方微信