猿问

求Java老司机帮我看看这个异常java.lang.reflect.InvocationTargetException?

java.lang.reflect.InvocationTargetException

        at sun.reflect.GeneratedMethodAccessor2395.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio

n.java:280)

        at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:

216)

        at org.apache.struts.action.RequestProcessor.processActionPerform(Reques

tProcessor.java:484)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja

va:274)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148

2)

        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)


        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run

(StubSecurityHelper.java:227)

        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri

tyHelper.java:125)

        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav

a:292)

        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja

va:56)

        at com.whir.common.util.SetCharacterEncodingFilter.doFilter(SetCharacter

EncodingFilter.java:100)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja

va:56)

        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio

n.run(WebAppServletContext.java:3588)

        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate

dSubject.java:321)

        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:

121)

        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS

ervletContext.java:2200)

        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC

ontext.java:2106)

        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j

ava:1428)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Caused by: java.lang.NoSuchMethodError: com.topband.hr.model.ZBModel.setZc(Ljava

/lang/String;)V

        at com.topband.hr.action.WriteBackSAPAction.actionForHG(WriteBackSAPActi

on.java:2313)

        ... 26 more

加粗下划线这里说是没有这个方法导致的,可是我检查了好多遍这个类和方法没问题,求大神指点迷津吧

SUN风暴
浏览 4763回答 2
2回答

qq_卡布奇诺_8

如果你是在tomcat启动环境下编写后,没有重启tomcat的话,建议重启tomcat.
随时随地看视频慕课网APP

相关分类

Java
我要回答