diff --git a/src/tap/TAPSyncJob.java b/src/tap/TAPSyncJob.java index 92b2a08b2cef6487efe1f3b8854c065cd8379f0f..81709c12fd7969da208c3306491ff9233d17327d 100644 --- a/src/tap/TAPSyncJob.java +++ b/src/tap/TAPSyncJob.java @@ -47,7 +47,7 @@ import uws.service.log.UWSLog.LogLevel; * </p> * * @author Grégory Mantelet (CDS;ARI) - * @version 2.0 (09/2014) + * @version 2.0 (11/2014) */ public class TAPSyncJob { @@ -190,7 +190,7 @@ public class TAPSyncJob { boolean timeout = false; try{ // wait the end: - thread.join(tapParams.getExecutionDuration()); + thread.join(tapParams.getExecutionDuration() * 1000); // if still alive after this duration, interrupt it: if (thread.isAlive()){ timeout = true; @@ -198,7 +198,7 @@ public class TAPSyncJob { thread.join(waitForStop); } }catch(InterruptedException ie){ - /* Having a such exception here, is not surprising, because we may have interrupt the thread! */ + /* Having a such exception here, is not surprising, because we may have interrupted the thread! */ }finally{ // Whatever the way the execution stops (normal, cancel or error), an execution report must be fulfilled: execReport = thread.getExecutionReport(); diff --git a/src/tap/log/DefaultTAPLog.java b/src/tap/log/DefaultTAPLog.java index f20e6fa52dc7f7c5b256d46b00e6efbb9012b709..629e24de6301c70c173c74fab2b4a881e573b6cd 100644 --- a/src/tap/log/DefaultTAPLog.java +++ b/src/tap/log/DefaultTAPLog.java @@ -35,7 +35,7 @@ import uws.service.log.DefaultUWSLog; * Default implementation of the {@link TAPLog} interface which lets logging any message about a TAP service. * * @author Grégory Mantelet (CDS;ARI) - * @version 2.0 (09/2014) + * @version 2.0 (11/2014) * * @see DefaultUWSLog */ @@ -126,7 +126,7 @@ public class DefaultTAPLog extends DefaultUWSLog implements TAPLog { } // Log the message: - log(level, "TAP", event, jobId, message + msgAppend, error); + log(level, "TAP", event, jobId, message + (msgAppend != null ? msgAppend : ""), error); } }