-1
即使構建成功,Spring啓動未能啓動應用程序。以下是錯誤:春季開機未能啓動應用程序
2015-02-23T17:50:00.21-0800 [DEA] ERR Instance (index 0) failed to start accepting connections
2015-02-23T17:50:00.36-0800 [App/0] OUT 2015-02-24 01:50:00.362 INFO 31 --- [ Thread-2] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot[email protected]432b3d10: startup date [Tue Feb 24 01:49:04 UTC 2015]; root of context hierarchy
2015-02-23T17:50:00.37-0800 [App/0] OUT 2015-02-24 01:50:00.374 WARN 31 --- [ Thread-2] ationConfigEmbeddedWebApplicationContext : Exception thrown from ApplicationListener handling ContextClosedEvent
2015-02-23T17:50:00.37-0800 [App/0] OUT java.lang.NullPointerException: null
2015-02-23T17:50:00.37-0800 [App/0] OUT at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)
2015-02-23T17:50:00.37-0800 [App/0] OUT at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.transport.http.DestinationRegistryImpl.removeDestination(DestinationRegistryImpl.java:62)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.transport.http.AbstractHTTPDestination.deactivate(AbstractHTTPDestination.java:931)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:58)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.endpoint.ServerImpl.stop(ServerImpl.java:174)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.endpoint.ServerImpl.destroy(ServerImpl.java:179)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.managers.ServerRegistryImpl.preShutdown(ServerRegistryImpl.java:90)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(CXFBusLifeCycleManager.java:97)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:318)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:305)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.spring.SpringBus.onApplicationEvent(SpringBus.java:113)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.apache.cxf.bus.spring.SpringBus$1.onApplicationEvent(SpringBus.java:62)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:882)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:141)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:811)
2015-02-23T17:50:00.37-0800 [App/0] OUT 2015-02-24 01:50:00.375 WARN 31 --- [ Thread-2] ationConfigEmbeddedWebApplicationContext : Exception thrown from LifecycleProcessor on context close
2015-02-23T17:50:00.37-0800 [App/0] OUT java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot[email protected]432b3d10: startup date [Tue Feb 24 01:49:04 UTC 2015]; root of context hierarchy
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:359)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:890)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:141)
2015-02-23T17:50:00.37-0800 [App/0] OUT at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:811)
2015-02-23T17:50:02.82-0800 [DEA] OUT Removing crash for app with id e3aea84f-1a88-48bc-b9e9-8b954132ca74
2015-02-23T17:50:02.82-0800 [DEA] OUT Stopping app instance (index 0) with guid e3aea84f-1a88-48bc-b9e9-8b954132ca74
2015-02-23T17:50:02.82-0800 [DEA] OUT Stopped app instance (index 0) with guid e3aea84f-1a88-48bc-b9e9-8b954132ca74
2015-02-23T17:50:09.56-0800 [API] OUT App instance exited with guid e3aea84f-1a88-48bc-b9e9-8b954132ca74 payload: {"cc_partition"=>"default", "droplet"=>"e3aea84f-1a88-48bc-b9e9-8b954132ca74", "version"=>"d5ffcec3-ee13-4ee0-b155-1e43c1062187", "instance"=>"eba899212df34aa49327abc4b8c86691", "index"=>0, "reason"=>"CRASHED", "exit_status"=>-1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1424742600}
其他人都面臨同樣的問題。現在停滯了一段時間。
我看到一些像這樣的帖子,在升級Spring引導時修復了這個問題,你使用的是什麼版本的Spring引導 – faljbour 2015-02-24 02:27:01
我在Apache CXF中看到一個NullPointerException異常。但該應用程序已經死了(不接受Cloudfoundry的外觀)。它是一個Web應用程序?它接受連接嗎? – 2015-02-24 07:39:24
遲到的道歉。這是通過在我的項目中添加manifest.yml文件來解決的。這是之前添加的,但不知何故被刪除。這解決了這個問題。 – 2015-04-01 21:08:41