bug fixed for the ThreadDataLoader. ThreadExecutionFinished variable set to true if an exception occurs and Throwable exception managed in catch statement.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@100807 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-10-21 08:29:45 +00:00
parent cc80af9d93
commit 326fb961c9
1 changed files with 3 additions and 2 deletions

View File

@ -3100,11 +3100,12 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
}
}
}
} catch (Throwable e) {
logger.error("dbmanager-> ", e);
}finally{
// thread terminates its execution
setThreadExecutionFinished(true);
logger.info("dbmanager-> Thread DataLoader execution terminated");
} catch (Exception e) {
logger.error("dbmanager-> ", e);
}
}