diff --git a/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java b/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java index a16573e..beb6b80 100644 --- a/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java +++ b/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java @@ -75,7 +75,9 @@ public class ModelerService { //logger.debug("EPR: "+eprToString); } catch (SerializationException e) { //logger.error("VDL Model Service: error serializing EPR"); - throw new RemoteException("VDL Model Service: error serializing EPR",e); + logger.error("VDL Model Service: error serializing EPR",e); + e.printStackTrace(); + throw new GCUBEFault(e); } DBInterface.ExecuteUpdate("insert into VRE values('"+getResource().getID()+"','"+request.getVREName()+"','"+request.getVREDescription()+"','"+request.getVREDesigner()+"','"+request.getVREManager()+"','"+dateFrom+"','"+dateTo+"','"+eprToString+"','In Progress'); ");