From 7cc403b3ce468e82a57811336def347cb6c9025e Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 10 Mar 2009 13:36:34 +0000 Subject: do not return errorResponse on interrupt git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@319 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/online/applet/AppletBKUWorker.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'BKUApplet/src/main/java/at') diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletBKUWorker.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletBKUWorker.java index 8c1bd2bd..eb6cf30b 100644 --- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletBKUWorker.java +++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletBKUWorker.java @@ -126,8 +126,9 @@ public class AppletBKUWorker extends AbstractBKUWorker implements Runnable { err.setErrorCode(6002); } else { Throwable cause = ex.getCause(); - if (cause != null) { - log.error("caused by: " + cause.getMessage()); + if (cause != null && cause instanceof InterruptedException) { + log.info("do not return error response, client might want to resume session"); + finished = true; } err.setErrorCode(4000); } @@ -155,7 +156,7 @@ public class AppletBKUWorker extends AbstractBKUWorker implements Runnable { } while (!finished); - log.info("Done " + Thread.currentThread().getName()); + log.info("Finished " + Thread.currentThread().getName()); } catch (WebServiceException ex) { log.fatal("communication error with server STAL: " + ex.getMessage(), ex); -- cgit v1.2.3