java.lang.NoSuchMethodException:com.jin.struts.action.PerformUsers.execute()我用的是Struts2 我自己写的控制类PerformUsers,没有继承Action,所以没有写execute方法,而是在里面写了多个结构跟execute方法相似的方法.就

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 17:46:47

java.lang.NoSuchMethodException:com.jin.struts.action.PerformUsers.execute()我用的是Struts2 我自己写的控制类PerformUsers,没有继承Action,所以没有写execute方法,而是在里面写了多个结构跟execute方法相似的方法.就
java.lang.NoSuchMethodException:com.jin.struts.action.PerformUsers.execute()
我用的是Struts2 我自己写的控制类PerformUsers,没有继承Action,所以没有写execute方法,而是在里面写了多个结构跟execute方法相似的方法.就是把几个性质相同的方法整合到一个action里.但是它老是报这个错误是什么意思?

java.lang.NoSuchMethodException:com.jin.struts.action.PerformUsers.execute()我用的是Struts2 我自己写的控制类PerformUsers,没有继承Action,所以没有写execute方法,而是在里面写了多个结构跟execute方法相似的方法.就
你的jar版本不对 换个
我在Eclipse中运行该程序都是正常的.我以前一直用的都是POI3.2的JAR包.但是这次换了一个3.6的包,然后到Tomcat中运行就出现了下面的错误.
java.lang.NoSuchMethodError:org.apache.poi.hssf.usermodel.HSSFDateUtil.isCellDateFormatted(Lorg/apache/poi/hssf/usermodel/HSSFCell;)Z
at com.forgon.tools.excel.ParerUtils.getCellValue(ParerUtils.java:202)
at com.forgon.pms.contract.service.ImportContractManagerImpl.importContractFromSheet(ImportContractManagerImpl.java:129)
我检查了3.6的包的里确实有这个方法不知道为什么会抛这个异常,有没高手碰到过此问题的.
问题解决了,应该是3.6jar包的问题,换回3.2的包又没事了.真是被apache害死了.有没人要分的,要的快点哈.