diff --git a/.classpath b/.classpath
index ce272c8..70ce04a 100644
--- a/.classpath
+++ b/.classpath
@@ -27,7 +27,6 @@
-
diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java
index 525660e..354e7ad 100644
--- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java
+++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java
@@ -14,6 +14,8 @@ import org.gcube.application.geoportal.model.concessioni.LayerConcessione;
import org.gcube.application.geoportal.model.concessioni.RelazioneScavo;
import org.gcube.application.geoportal.model.content.UploadedImage;
import org.gcube.application.geoportal.model.content.WorkspaceContent;
+import org.gcube.application.geoportal.model.fault.PublishException;
+import org.gcube.application.geoportal.model.fault.ValidationException;
import org.gcube.portlets.user.geoportaldataentry.client.ConcessioniFormCardTitle;
import org.gcube.portlets.user.geoportaldataentry.client.GeoportalDataEntryService;
import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport;
@@ -191,9 +193,24 @@ public class GeoportalDataEntryServiceImpl extends RemoteServiceServlet implemen
}
return cRep;
+ }catch (ValidationException e1){
+ LOG.error("Error on validating data: ",e1);
+ throw new Exception("Error on validating data: "+e1.getReport().toString());
+ }catch (PublishException e2) {
+ LOG.error("Error on publishing data: ",e2);
+ throw new Exception("Error on publishing data: "+e2.getMessage());
}catch (Exception e) {
LOG.error("Error on commiting data: ",e);
- throw new Exception("Error occurred on saving data, try again or contact the support");
+ throw new Exception("Error occurred on saving data, try again or contact the support. Error: "+e.getMessage());
+ }finally {
+ /*if(manager!=null) {
+ try {
+ manager.shutdown();
+ }catch (Exception e) {
+ //silent
+ }
+
+ }*/
}