Did you recently upgrade your JVM to 1.5?
Chris Mathrusse
[EMAIL PROTECTED]
Sybase, Inc
One Sybase Drive
Dublin, CA 94568
(925) 236-5553
| "Anusuri, Vijay M"
<[EMAIL PROTECTED]>
03/14/2006 08:04 AM
|
|
Hi,
I have two overloaded setter methods in DTO: one with Long Wrapper parameter and another with long primitive. This has been working fine for several months. But it stopped working recently and complaining that "The error happened while setting a property on the result object". I know what is happening here . Now IBatis is started using setter method with primitive long parameter. Earlier It used use Long Wrapper setter method. What is the reason for this behavior?
Setter methods in DTO
/**
* @param parentAnalysisId The parentAnalysisId to set.
*/
public void setParentAnalysisId(Long parentAnalysisId) {
this.parentAnalysisId = parentAnalysisId;
}
/**
* @param parentAnalysisId The parentAnalysisId to set.
*/
public void setParentAnalysisId(long parentAnalysisId) {
this.parentAnalysisId = new Long(parentAnalysisId);
}
Thanks,
Vijay
