diff --git a/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java b/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java index 937b28c..8e3f1e5 100644 --- a/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java +++ b/src/org/gcube/vremanagement/vremodeler/impl/ModelerService.java @@ -61,6 +61,7 @@ public class ModelerService { ResultSet res=null; try { res=DBInterface.queryDB("select * from VRE where VRE.id='"+getResource().getId()+"'; "); + if(res.next()) { dateFrom=new Date(request.getStartTime()); @@ -71,6 +72,7 @@ public class ModelerService { dateTo=new Date(request.getEndTime()); String eprToString; try { + System.out.println(getResource().getEPR()); eprToString = ObjectSerializer.toString(getResource().getEPR()); //logger.debug("EPR: "+eprToString); } catch (SerializationException e) { @@ -85,7 +87,7 @@ public class ModelerService { } catch (Exception e) { - logger.error("setVRE "+e.getMessage()); + logger.error(" "+e.getMessage()); e.printStackTrace(); throw new GCUBEFault(e); }