Avoid exception - "org.springframework.beans.NotWritablePropertyException:

Invalid property 'timeoutSeconds' of bean class
[org.archive.modules.fetcher.FetchFTP]: Bean property 'timeoutSeconds' is not
writable or has an invalid setter method. Does the parameter type of the setter
match the return type of the getter?"
* FetchFTP.java
    change setTimeoutSeconds(Integer) to setTimeoutSeconds(int)
This commit is contained in:
nlevitt
2011-04-04 20:10:54 +00:00
parent 8e7b9a5fdf
commit 653f24e713
@@ -201,7 +201,7 @@ public class FetchFTP extends Processor {
public int getTimeoutSeconds() {
return (Integer) kp.get("timeoutSeconds");
}
public void setTimeoutSeconds(Integer timeout) {
public void setTimeoutSeconds(int timeout) {
kp.put("timeoutSeconds",timeout);
}