1
回答
求助大神!抛异常出错...
终于搞明白,存储TCO原来是这样算的>>>   
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

<无标签>
举报
君千殇520
发帖于11个月前 1回/88阅
顶部