NoSuchMethodError 但是该方法已经改变,报原来那个方法找不到

loveTang3 2014-08-15 09:29:12
各位大神,mainRemindGrade这个字段本来是Integer型的,因为需要将它改成了bigInteger型的,部署后后服务器上就报这个错误,服务器是Solaris 求指导~谢谢啦~

错误日志: org.displaytag.exception.BaseNestableJspTagException <init> Exception: [.LookupUtil] Error looking up property "mainRemindGrade" in object type "com.boco.eoms.sheet.complaint.webapp.action.ProcessListComplaintDisplaytagDecoratorHelper". Cause: null
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor1490.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
。。。。
Caused by: java.lang.NoSuchMethodError: com.tearn.it.sheet.complaint.model.ComplaintMainSN.getMainRemindGrade()Ljava/lang/Integer;
at com.tearn.it.sheet.complaint.webapp.action.ProcessListComplaintDisplaytagDecoratorHelper.getMainRemindGrade(ProcessListComplaintDisplaytagDecoratorHelper.java:386)
... 112 more
代码:
public class ComplaintMainSN extends ComplaintMain {
private String mainTempHoldFlag;
private BigInteger mainRemindGrade;
private BigInteger mainRemindTime2;
private BigInteger mainRemindTime3;
private String serviceArea;
。。。。
public String getMainTempHoldFlag() {
return this.mainTempHoldFlag;
}
public void setMainTempHoldFlag(String mainTempHoldFlag) {
this.mainTempHoldFlag = mainTempHoldFlag;
}
public BigInteger getMainRemindGrade() {
return this.mainRemindGrade;
}
public void setMainRemindGrade(BigInteger mainRemindGrade) {
this.mainRemindGrade = mainRemindGrade;
}
}
...全文
484 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
loveTang3 2014-08-15
  • 打赏
  • 举报
回复
引用 1 楼 willxinhai 的回复:
这个需要在helper类里加一个特殊处理
是因为那个helper类里面,报错的那个方法上面那个方法里面报错了。不过还是不清楚为什么上面的方法异常了下面的就会报这样的错,不过还是谢谢你,已经解决了,就把分给你吧
willxinhai 2014-08-15
  • 打赏
  • 举报
回复
这个需要在helper类里加一个特殊处理

1,543

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 Solaris
社区管理员
  • Solaris
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧