开发者社区> 问答> 正文

求助大神!抛异常出错...? 400 报错

求助大神!抛异常出错...? 400 报错 Servlet.service() for servlet [SpringMVC] in context with path [/activity] threw exception [Request processing failed; nested exception is BizException [expCode=99, expMsg=参数name不能为空]] with root cause<br />
BizException [expCode=99, expMsg=参数name不能为空]<br />
at com.roncoo.activity.biz.activity.ActivityInfoBiz.addInfo(ActivityInfoBiz.java:82)<br />
at com.roncoo.activity.controller.admin.ActivityInfoController.add(ActivityInfoController.java:45)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
at java.lang.reflect.Method.invoke(Unknown Source)<br />
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)<br />
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)<br />
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)<br />
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)<br />
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)<br />
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)<br />
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)<br />
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)<br />
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)<br />
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)<br />
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)<br />
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)<br />
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)<br />
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)<br />
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br />
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)<br />
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br />
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br />
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br />
at com.roncoo.activity.common.filter.XSSFilter.doFilter(XSSFilter.java:33)<br />
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br />
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br />
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)<br />
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)<br />
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)<br />
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)<br />
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)<br />
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)<br />
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)<br />
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)<br />
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)<br />
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)<br />
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)<br />
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)<br />
at java.lang.Thread.run(Unknown Source)<br />




如上,我throw一个异常,走到最后倒数第三部在线程池那里断了,unknown source 是因为什么呢,我类继承了RuntimeException


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

    没有源码吗? ActivityInfoBiz.addInfo看看这个方法######谢谢啦,问题已经找到了

    2020-06-01 10:33:44
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

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