我在Docker上有一個正在運行的應用程序。 但是,當我試圖檢查它的健康,如服務器:端口/健康,它說下。 爲什麼?這是Docker的常見問題嗎?Spring Boot Actuator在Docker上返回應用程序
謝謝
編輯:
2017年9月27日14:56:30.495 WARN 22559 --- [NIO-8234-EXEC-4] osbactuate.health.JmsHealthIndicator:健康檢查失敗 javax.jms.JMSException:無法創建傳輸。原因:java.io.IOException:無法識別傳輸方案:[vm] at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)〜[activemq-client-5.14.5.jar:5.14。 5] 在org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:333)〜[ActiveMQ的客戶端 - 5.14.5.jar:5.14.5] 在org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory。的java:346)〜[ActiveMQ的客戶端 - 5.14.5.jar:5.14.5] 在org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:304)〜[ActiveMQ的客戶端 - 5.14.5.jar: 5.14.5] at org.springframework.boot.actuate.health。org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:244)〜[activemq-client-5.14.5.jar:5.14.5] 。 JmsHealthIndicator.doHealthCheck(JmsHealthIndicator.java:38)〜[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator。 java:43)〜[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:68)[spring -boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.endpoint.HealthEndpoint.invoke(HealthEndpoint.java:81)[spring-boot-actuator-1.5。 4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.getHealth(HealthMvcEndpoint.java:171)[spring-boot-actuator-1.5.4.RELEASE.jar :1.5.4.RELEASE] at org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(HealthMvcEn dpoint.java:145)[彈簧引導促動器1.5.4.RELEASE.jar:1.5.4.RELEASE] 在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法)〜[NA:1.8.0_60] 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[NA:1.8.0_60] 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[NA:1.8.0_60] 在java的。 lang.reflect.Method.invoke(Method.java:497)〜[NA:1.8.0_60] 在org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)彈簧的Web-4.3 .9.RELEASE.jar: 在org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)4.3.9.RELEASE] [彈簧網絡4.3.9.RELEASE.jar:4.3。 9.RELEASE] at org.springframework.web.servlet.mvc.m ethod.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter .invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter。的java:738)[彈簧webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[彈簧webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)[彈簧webmvc-4.3.9.RELEASE.jar:4.3 0.9。發佈] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet .FrameworkServlet.processRequest(FrameworkServlet.java:970)[彈簧webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)[tomcat-embed-core-8.5.15.jar: 8.5.15] 在org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[彈簧webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在javax.servlet.http包.httpServlet.service(HttpServlet.java:742)[tomcat-embed-core-8.5.15.jar:8.5.15] at org。 apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)[Tomcat的嵌入芯-8.5.15.jar:8.5.15] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :166)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.5 .15.jar:8.5.15] 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[Tomcat的嵌入芯-8.5.15.jar:8.5.15] 在有機apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter .java:55)[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.apache.catalina.core.ApplicationFilterChain .internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed -core-8.5.15.jar:8.5.15] at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)[spring-boot-actuator-1.5.4.RELEASE.jar: 1.5.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.apache .catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-8.5.15。 jar:8.5.15] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework .org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain。)。 java:193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-8.5。 15.jar:8.5.15] at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInte RNAL(HttpPutFormContentFilter.java:105)[彈簧網絡4.3.9.RELEASE.jar:4.3.9.RELEASE] 在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[彈簧web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-8.5.15.jar:8.5 0.15] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[Tomcat的嵌入芯-8.5.15.jar:8.5.15] 在org.springframework.web.filter。 HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[ spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.apache。catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166 )[tomcat-embed-core-8.5.15.jar:8.5.15] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.9.RELEASE.jar :4.3.9.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org。 apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :166)[tomcat-embed-core-8.5.15.jar:8.5.15]在org.springframework.web上的[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] .filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 193)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-8.5.15。 jar:8.5.15] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina .core.StandardContextValve.invoke(StandardContextValve.java:96)[tomcat-embed-core-8.5.15.jar:8.5.15 ] at org.apache.catalina.core.StandardHostValve org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)[tomcat-embed-core-8.5.15.jar:8.5.15] 。 invoke(StandardHostValve.java:140)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)[tomcat-embed- core-8.5.15.jar:8.5.15] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.http11.Http11Processor.service( Http11Processor.java:799)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.AbstractProcessorLight.pro (AbstractProcessorLight.java:66)[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:861)[tomcat-embed- core-8.5.15.jar:8.5.15] at org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1455)[tomcat-embed-core-8.5.15.jar:8.5 .15] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-embed-core-8.5.15.jar:8.5.15] at java.util.concurrent。 ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_60] at org.apache。 tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.5.15.jar:8.5.15] a t java.lang.Thread.run(Thread.java:745)[na:1.8.0_60] 導致:java.io.IOException:無法識別傳輸方案:[vm] at org.apache.activemq.util。 IOExceptionSupport.create(IOExceptionSupport.java:28)〜[activemq-client-5.14.5.jar:5.14.5] at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:185)〜[activemq- client-5.14.5.jar:5.14.5] at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:64)〜[activemq-client-5.14.5.jar:5.14.5] at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:331)〜[activemq-client-5.14.5.jar:5.14.5] ... 75通用幀被省略 引起來自:java.io.IOException:找不到工廠類的資源:META-INF/services/org/apache/activemq/transport/vm at org.apache.activemq.util.FactoryFinder $ StandaloneObjectFactory.loadProperties(FactoryFinder.java:98)〜[activemq客戶端5.14.5.jar:5.14.5.jar:5.14.5] at org.apache.activemq.util.FactoryFinder $ StandaloneObjectFactory.create ] at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:148)〜[activemq-client-5.14.5.jar:5.14.5] at org.apache.activemq.transport.TransportFactory.findTransportFactory (TransportFactory.java:182)〜[activemq-client-5.14.5.jar:5.14.5] ...省略77個常用幀
我個人從未遇到過這樣的問題。你能否提供更多的信息? – geoand
你需要什麼信息? – KompiKompi
檢查你的日誌,看看它爲什麼說下來 –