2 java beginner wx Java_beginner_wx 于 2016.02.19 16:28 提问

求助java.lang.NoSuchMethodException

at java.lang.Class.getMethod(Class.java:1605)
at com.zfsoft.struts.action.BaseAction.execute(BaseAction.java:65)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.zfsoft.util.CheckYhqxFilter.doFilter(CheckYhqxFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.zfsoft.util.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:24)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)

将数据以excel文件格式导出,报错,找不到这个方法但是action里确实写了

9个回答

qq_28905485
qq_28905485   2016.02.19 16:43

怎么代码不贴出来呢?

Java_beginner_wx
Java_beginner_wx 代码太多,我不知从何贴起
接近 2 年之前 回复
enpterexpress
enpterexpress   2016.02.19 17:20

调用了没有定义的方法

ldy13024770810
ldy13024770810   2016.02.19 16:38

查看方法是否为public

diaoliwei2
diaoliwei2   Rxr 2016.02.19 16:39

部署在tomcat里吗?是不是tomcat下缓存的问题

luochoudan
luochoudan   Ds   Rxr 2016.02.19 16:52

action里面写了,没部署上?

zhihan_tu
zhihan_tu   2016.02.19 17:08

代码贴出来看看先,行不

Java_beginner_wx
Java_beginner_wx   2016.02.19 17:14

我刚刚问同事找到原因了,action里写了,但是这个action不在我当前运行的项目中,在另一个项目中,将action所在的项目link过来,就好了

qq_28905485
qq_28905485 解决了就好
接近 2 年之前 回复
tanggao1314
tanggao1314   2016.02.19 17:46

方法没有定义,看是不是定义了

Royal_lr
Royal_lr   Ds   Rxr 2016.02.19 19:45

没有这个方法,,,,,

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!