From 653f24e7135b85b45bf44b218b9eb5636e73d4e7 Mon Sep 17 00:00:00 2001 From: nlevitt Date: Mon, 4 Apr 2011 20:10:54 +0000 Subject: [PATCH] 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) --- modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java b/modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java index 872dfdcf..10501ef0 100644 --- a/modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java +++ b/modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java @@ -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); }