Added ScopeProvider.instance.reset() in finally statement

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@128574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-12 15:28:18 +00:00
parent 1d79703f6f
commit 36b49746d3
2 changed files with 38 additions and 34 deletions

View File

@ -169,6 +169,8 @@ public class ApplicationProfileReader {
logger.error("Error while trying to fetch applicationProfile profile from the infrastructure");
e.printStackTrace();
return null;
}finally{
ScopeProvider.instance.reset();
}
}

View File

@ -91,6 +91,8 @@ public class GeoRuntimeReader {
}catch (Exception e) {
logger.error("Sorry, an error occurred on reading parameters in Runtime Reosurces",e);
e.printStackTrace();
}finally{
ScopeProvider.instance.reset();
}
return parameters;