Added catch Exception

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@122561 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-01-27 11:43:45 +00:00
parent 72b045c748
commit 98e540a756
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ public class StorageIDResolver extends HttpServlet {
logger.warn("NullPointerException during copy, skipping printStrackTrace");
sendErrorQuietly(response, 404);
} catch (Exception e) {
logger.error("Exception: ",e);
sendErrorQuietly(response, 404);
} finally {
IOUtils.closeQuietly(in);
IOUtils.closeQuietly(out);