diff --git a/.classpath b/.classpath
index e527956..97d6747 100644
--- a/.classpath
+++ b/.classpath
@@ -1,33 +1,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 771251f..1d4b11d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
org.gcube.dataaccess
database-resource-manager
- 1.3.1-SNAPSHOT
+ 1.4.1-SNAPSHOT
DatabaseResourceManager
Database resource manager
@@ -22,60 +22,7 @@
-
- org.gcube.contentmanagement
- storage-manager-core
- [1.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
-
-
- org.gcube.core
- common-scope-maps
- [1.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
-
-
- org.gcube.resources.discovery
- ic-client
- [1.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
-
-
- org.gcube.contentmanagement
- storage-manager-wrapper
- [1.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
-
-
- junit
- junit
- 4.11
-
-
- org.gcube.core
- common-scope
- [1.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
-
-
- org.gcube.resources
- common-gcore-resources
- [1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)
-
-
-
- org.gcube.core
- common-encryption
- [1.0.1-SNAPSHOT,3.0.0-SNAPSHOT)
-
-
-
- org.gcube.dataanalysis
- ecological-engine
- [1.7.2-SNAPSHOT,2.0.0-SNAPSHOT)
-
-
- postgresql
- postgresql
-
-
-
com.mysql
@@ -88,18 +35,17 @@
postgresql
9.1-901-1.jdbc4
-
- org.gcube.resources.discovery
- discovery-client
- [1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)
-
rapidminer-custom
swissql-api
1.0.0
-
+
+ org.gcube.dataanalysis
+ ecological-engine-smart-executor
+ [1.4.0-SNAPSHOT,2.0.0-SNAPSHOT)
+
diff --git a/src/main/java/org/gcube/dataaccess/databases/utils/DatabaseManagement.java b/src/main/java/org/gcube/dataaccess/databases/utils/DatabaseManagement.java
index 5f95f2f..b760cf8 100644
--- a/src/main/java/org/gcube/dataaccess/databases/utils/DatabaseManagement.java
+++ b/src/main/java/org/gcube/dataaccess/databases/utils/DatabaseManagement.java
@@ -417,7 +417,7 @@ public class DatabaseManagement {
// }
// }
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
//close the file
@@ -791,7 +791,7 @@ public class DatabaseManagement {
file), "UTF-8"));
writeSamplingResultIntoFile(resultSet, DataTypeColumns);
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
//close the file
@@ -884,7 +884,7 @@ public class DatabaseManagement {
writeSamplingResultIntoFile(resultSet, DataTypeColumns);
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
//close the file
@@ -988,7 +988,7 @@ public class DatabaseManagement {
file), "UTF-8"));
writeSamplingResultIntoFile(resultSet, DataTypeColumns);
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
//close the file
@@ -1391,7 +1391,7 @@ public class DatabaseManagement {
AnalysisLogger.getLogger().debug(
"In DatabaseManagement-> Writing File and Result Map creation operations terminated");
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
// close the file
@@ -1623,7 +1623,7 @@ public class DatabaseManagement {
AnalysisLogger.getLogger().debug(
"In DatabaseManagement-> Writing File and Result Map creation operations terminated");
- }catch (Throwable e) {
+ }catch (Exception e) {
throw e;
}finally{
// close the file