perfsonar-dev - perfsonar: r4157 - trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType
Subject: perfsonar development work
List archive
perfsonar: r4157 - trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4157 - trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType
- Date: Thu, 10 Jul 2008 07:54:25 -0400
Author: mac
Date: 2008-07-10 07:54:25 -0400 (Thu, 10 Jul 2008)
New Revision: 4157
Modified:
trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType/LSRegisterAction.java
Log:
more logging - useful for diagnosing strange problems...
Modified:
trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType/LSRegisterAction.java
===================================================================
---
trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType/LSRegisterAction.java
2008-07-10 11:14:57 UTC (rev 4156)
+++
trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType/LSRegisterAction.java
2008-07-10 11:54:25 UTC (rev 4157)
@@ -178,17 +178,20 @@
//========check data========
+ logger.debug("[LS Registration] get data elements");
Data[] dataElements = getDataElements(request);
//=========process with register/update===========
-
+
+ logger.debug("[LS Registration] check whether lookup info
["+metadataId+"] exists in DB");
+
//check if there is metadata with the same key:
//if so, check if you're allowed to update data (to remove them)
//throw exception if you're not allowed
if (dao.isLookupInfo(metadataId)) {
logger.debug("[LS Registration] Such Lookup Info ("+metadataId+"
is already " +
- "registered in DB. Allow_update is"+
allowReplaceIfAlreadyRegistered);
+ "registered in DB. Allow_update is set to ["+
allowReplaceIfAlreadyRegistered+"]");
if (allowReplaceIfAlreadyRegistered) {
@@ -281,7 +284,7 @@
serviceName = ((org.ggf.ns.nmwg.tools.org.perfsonar.v1_0.Subject)
requestMetadata.getSubject()).getService().
getServiceName().getServiceName().trim();
- if (serviceName.equals("")) throw new RuntimeException("empty");
+ if (serviceName.equals("")) throw new
RuntimeException("serviceName is empty");
} catch (RuntimeException e) {
String m="[LS Registration] No serviceName in request -
"+e.getMessage();
logger.error(m);
@@ -306,7 +309,7 @@
requestMetadata.getSubject()).getService().
getAccessPoint().getAccessPoint();
accessPoint = accessPoint.trim(); //trim
- if (accessPoint.equals("")) throw new RuntimeException("empty");
+ if (accessPoint.equals("")) throw new
RuntimeException("accessPoint is empty");
} catch (RuntimeException e) {
String m="[LS Registration] No access_point in request -
"+e.getMessage();
@@ -347,8 +350,9 @@
return dataElements;
} catch (RuntimeException ex) {
- throw new PerfSONARException("error.ls.no_data_trigger",
- "error during converting data elements:
"+ex.getMessage());
+ String m = "error during converting data elements:
"+ex.getMessage();
+ logger.warn(m);
+ throw new PerfSONARException("error.ls.no_data_trigger",m);
}
}
- perfsonar: r4157 - trunk/geant2_java-xml-ls/src/main/java/org/perfsonar/service/lookupService/xmlType, svnlog, 07/10/2008
Archive powered by MHonArc 2.6.16.