当前位置: 代码迷 >> Java Web开发 >> 报错:java.lang.reflect.InvocationTargetException解决办法
  详细解决方案

报错:java.lang.reflect.InvocationTargetException解决办法

热度:6606   发布时间:2013-02-25 21:12:05.0
报错:java.lang.reflect.InvocationTargetException
13:29:21,456 INFO [STDOUT] 2011-10-08 13:29:21 [org.apache.struts.actions.DispatchAction]-[ERROR] Dispatch[/taskYield] to method 'finish' returned an exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at com.peonyflavor.pfis.modules.common.util.BaseDispatchAction.execute(BaseDispatchAction.java:95)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.wisdom.framework.web.filter.SetCharacterEncodingFilter.doFilter(Unknown Source)
……省略
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
……省略
Caused by: java.lang.NoSuchMethodError: com.peonyflavor.pfis.modules.produce.service.TaskOrderService.updateTaskOrderStatus(Ljava/lang/Long;)V
at com.peonyflavor.pfis.modules.produce.presentation.action.TaskYieldAction.finish(TaskYieldAction.java:631)
... 57 more
13:29:21,608 ERROR [STDERR] javax.servlet.ServletException: java.lang.NoSuchMethodError: com.peonyflavor.pfis.modules.produce.service.TaskOrderService.updateTaskOrderStatus(Ljava/lang/Long;)V
13:29:21,613 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:298)
13:29:21,617 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
13:29:21,621 ERROR [STDERR] at com.peonyflavor.pfis.modules.common.util.BaseDispatchAction.execute(BaseDispatchAction.java:95)
13:29:21,626 ERROR [STDERR] at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
13:29:21,630 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
13:29:21,634 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
13:29:21,637 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
13:29:21,641 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  相关解决方案