使用NullPointerException

时间:2016-12-18 14:57:50

标签: spring spring-boot embedded-jetty

我试图用Jetty运行Spring Boot应用程序。启动期间抛出以下异常。 pom.xml是根据docs配置的。我错过了什么?

INFO初始化Spring嵌入式WebApplicationContext WARN上下文启动失败o.s.b.c.e.j.JettyEmbeddedWebAppContext@3fbfa96 {/,file:///C:/Users/.../AppData/Loc 人/温度/码头-docbase.7799235456508385695.8081 /,UNAVAILABLE} java.lang.NullPointerException:null         at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplication) Context.java:229)         at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access $ 000(EmbeddedWebApplicationCont) ext.java:89)         在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext $ 1.onStartup(EmbeddedWebApplicationCon) text.java:213)         at org.springframework.boot.context.embedded.jetty.ServletContextInitializerConfiguration $ Initializer.callInitia lizers(ServletContextInitializerConfiguration.java:83)         at org.springframework.boot.context.embedded.jetty.ServletContextInitializerConfiguration $ Initializer.doStart(Se rvletContextInitializerConfiguration.java:72)         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)         在org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)         在org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:120)         at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:809)         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)         在org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)         at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)         在org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)         在org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)         在org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)         在org.eclipse.jetty.server.Server.start(Server.java:422)         在org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)         在org.eclipse.jetty.server.Server.doStart(Server.java:389)         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)         at org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.initialize(JettyEmbeddedServlet) Container.java:91)         在org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer。(JettyEmbeddedServletCont) ainer.java:79)         在org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory.getJettyEmbeddedServletC ontainer(JettyEmbeddedServletContainerFactory.java:540)         在org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory.getEmbeddedServletContai NER(JettyEmbeddedServletContainerFactory.java:185)         at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(Embedd) edWebApplicationContext.java:164)         at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationConte) xt.java:134)         在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536)         at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext) 的.java:122)         在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)         在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)         在org.springframework.boot.SpringApplication.run(SpringApplication.java:315)         在org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)         在org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)         在com.ebs.mytreasury.frontend.FrontendApplication.main(FrontendApplication.java:68)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         在java.lang.reflect.Method.invoke(Method.java:497)         在org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)         在org.springframework.boot.loader.Launcher.launch(Launcher.java:87)         在org.springframework.boot.loader.Launcher.launch(Launcher.java:50)         在org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521) 信息开始@ 13219ms

0 个答案:

没有答案