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:
parent
72b045c748
commit
98e540a756
|
@ -179,6 +179,10 @@ public class StorageIDResolver extends HttpServlet {
|
||||||
logger.warn("NullPointerException during copy, skipping printStrackTrace");
|
logger.warn("NullPointerException during copy, skipping printStrackTrace");
|
||||||
sendErrorQuietly(response, 404);
|
sendErrorQuietly(response, 404);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("Exception: ",e);
|
||||||
|
sendErrorQuietly(response, 404);
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeQuietly(in);
|
IOUtils.closeQuietly(in);
|
||||||
IOUtils.closeQuietly(out);
|
IOUtils.closeQuietly(out);
|
||||||
|
|
Loading…
Reference in New Issue