diff --git a/src/main/java/org/gcube/datatransfer/resolver/applicationprofile/ApplicationProfileReader.java b/src/main/java/org/gcube/datatransfer/resolver/applicationprofile/ApplicationProfileReader.java index 20f540b..5be2ff5 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/applicationprofile/ApplicationProfileReader.java +++ b/src/main/java/org/gcube/datatransfer/resolver/applicationprofile/ApplicationProfileReader.java @@ -166,10 +166,10 @@ public class ApplicationProfileReader { } } catch (Exception e) { - logger.error("Error while trying to fetch applicationProfile profile from the infrastructure"); - e.printStackTrace(); + logger.error("Error while trying to fetch applicationProfile profile from the infrastructure", e); return null; }finally{ + logger.info("Resetting scope provider..."); ScopeProvider.instance.reset(); } diff --git a/src/main/java/org/gcube/datatransfer/resolver/gis/GeoRuntimeReader.java b/src/main/java/org/gcube/datatransfer/resolver/gis/GeoRuntimeReader.java index b79bf17..d8c1857 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/gis/GeoRuntimeReader.java +++ b/src/main/java/org/gcube/datatransfer/resolver/gis/GeoRuntimeReader.java @@ -89,9 +89,9 @@ public class GeoRuntimeReader { } }catch (Exception e) { - logger.error("Sorry, an error occurred on reading parameters in Runtime Reosurces",e); - e.printStackTrace(); + logger.error("Sorry, an error occurred on reading parameters in Runtime Resources",e); }finally{ + logger.info("Resetting scope provider..."); ScopeProvider.instance.reset(); }