This commit is contained in:
Lucio Lelii 2008-12-01 15:54:24 +00:00
parent a62f8eb474
commit a93a1414a6
1 changed files with 3 additions and 4 deletions

View File

@ -73,13 +73,11 @@ public class ModelerService {
dateTo=new Date(request.getEndTime()); dateTo=new Date(request.getEndTime());
String eprToString; String eprToString;
try { try {
System.out.println(getResource().getEPR());
eprToString = ObjectSerializer.toString(getResource().getEPR(), new QName(ModelerContext.getPortTypeContext().getNamespace(), "ModelResourceReference")); eprToString = ObjectSerializer.toString(getResource().getEPR(), new QName(ModelerContext.getPortTypeContext().getNamespace(), "ModelResourceReference"));
//logger.debug("EPR: "+eprToString); //logger.debug("EPR: "+eprToString);
} catch (SerializationException e) { } catch (SerializationException e) {
//logger.error("VDL Model Service: error serializing EPR"); //logger.error("VDL Model Service: error serializing EPR");
logger.error("VDL Model Service: error serializing EPR",e); logger.error("VDL Model Service: error serializing EPR",e);
e.printStackTrace();
throw new GCUBEFault(e); throw new GCUBEFault(e);
} }
@ -89,7 +87,6 @@ public class ModelerService {
} catch (Exception e) { } catch (Exception e) {
logger.error(" "+e.getMessage()); logger.error(" "+e.getMessage());
e.printStackTrace();
throw new GCUBEFault(e); throw new GCUBEFault(e);
} }
@ -203,7 +200,9 @@ public class ModelerService {
}catch(Exception e) {//logger.error("VDL Model: error on DB"); }catch(Exception e) {//logger.error("VDL Model: error on DB");
throw new GCUBEFault(e);} throw new GCUBEFault(e);}
return XMLUtil.PrepareCollectionXML(res, relatedCollection); String toReturn= XMLUtil.PrepareCollectionXML(res, relatedCollection);
System.out.println(toReturn);
return toReturn;
} }
/** /**