开发者社区> 问答> 正文

jetty 报错不显示问题?报错

之前发现工程部署至tomcat,抛出exception会在console显示

用JAVA代码启动JETTY,控制台木有东西

最终发现 错误变成了 org.eclipse.jetty下的warn级别

10:53:00.945  WARN  o.e.jetty.servlet.ServletHandler  

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.Exception: test
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[javaee-web-api-7.0.jar:na]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[javaee-web-api-7.0.jar:na]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:698) ~[jetty-servlet-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1509) ~[jetty-servlet-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) ~[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1489) ~[jetty-servlet-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:517) [jetty-servlet-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:564) [jetty-security-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1097) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:446) [jetty-servlet-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.Server.handle(Server.java:445) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:269) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229) [jetty-server-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358) [jetty-io-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) [jetty-util-9.0.6.v20130930.jar:9.0.6.v20130930]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) [jetty-util-9.0.6.v20130930.jar:9.0.6.v20130930]
    at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
Caused by: java.lang.Exception: test
    at com.ddatsh.controller.LoginController.login(LoginController.java:11) ~[classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219) ~[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) ~[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) ~[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE]
    ... 27 common frames omitted

这是什么情况


展开
收起
爱吃鱼的程序员 2020-06-22 14:23:56 576 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    Causedby:java.lang.Exception:test
       atcom.ddatsh.controller.LoginController.login(LoginController.java:11)~[classes/:na]
    这个是在10:53:00.945WARNo.e.jetty.servlet.ServletHandler里显示的……

    2020-06-22 14:24:12
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载