求助大神!抛异常出错...? 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
没有源码吗? ActivityInfoBiz.addInfo看看这个方法######谢谢啦,问题已经找到了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。