diff --git a/Server/src/main/java/org/openas2/cmd/processor/BaseCommandProcessor.java b/Server/src/main/java/org/openas2/cmd/processor/BaseCommandProcessor.java index 1f6a829d..592c6a61 100644 --- a/Server/src/main/java/org/openas2/cmd/processor/BaseCommandProcessor.java +++ b/Server/src/main/java/org/openas2/cmd/processor/BaseCommandProcessor.java @@ -14,6 +14,8 @@ import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ScheduledExecutorService; +import java.util.logging.Level; +import java.util.logging.Logger; public abstract class BaseCommandProcessor implements CommandProcessor, Component, HasSchedule { @@ -89,7 +91,11 @@ public void schedule(ScheduledExecutorService executor) throws OpenAS2Exception @Override public Void call() throws Exception { while (running) { - processCommand(); + try { + processCommand(); + } catch (Exception ex) { + Logger.getLogger(BaseCommandProcessor.class.getName()).log(Level.SEVERE, ex.getMessage(), ex); + } } return VOID; }