当前位置: 技术问答>linux和unix
NoSuchMethodError 但是该方法已经改变,报原来那个方法找不到
来源: 互联网 发布时间:2017-05-26
本文导语: 各位大神,mainRemindGrade这个字段本来是Integer型的,因为需要将它改成了bigInteger型的,部署后后服务器上就报这个错误,服务器是Solaris 求指导~谢谢啦~ 错误日志: org.displaytag.exception.BaseNestableJspTagException Exception...
各位大神,mainRemindGrade这个字段本来是Integer型的,因为需要将它改成了bigInteger型的,部署后后服务器上就报这个错误,服务器是Solaris 求指导~谢谢啦~
错误日志: org.displaytag.exception.BaseNestableJspTagException 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;
}
}
错误日志: org.displaytag.exception.BaseNestableJspTagException 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;
}
}
|
这个需要在helper类里加一个特殊处理