perfsonar-dev - perfsonar: r3433 - trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc
Subject: perfsonar development work
List archive
perfsonar: r3433 - trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc
Chronological Thread
- From:
- To:
- Subject: perfsonar: r3433 - trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc
- Date: Fri, 29 Feb 2008 09:11:30 -0500
Author: roman
Date: 2008-02-29 09:11:27 -0500 (Fri, 29 Feb 2008)
New Revision: 3433
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc/ExistDbXmlrpcXmlStorageManager.java
Log:
exception handling improved
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc/ExistDbXmlrpcXmlStorageManager.java
===================================================================
---
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc/ExistDbXmlrpcXmlStorageManager.java
2008-02-29 12:44:22 UTC (rev 3432)
+++
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc/ExistDbXmlrpcXmlStorageManager.java
2008-02-29 14:11:27 UTC (rev 3433)
@@ -143,6 +143,7 @@
(XPathQueryService)
dataRepository.getExistCollection().getService(
"XPathQueryService", "1.0");
//service.setProperty("indent", "yes");
+
ResourceSet result = service.query(xqueryExpression);
ResourceIterator resIt = result.getIterator();
@@ -176,7 +177,11 @@
} catch (XMLDBException e) {
throw new PerfSONARException("error.common.storage.xmldb.query",
"Can't perform XQuery: "+e.getMessage());
- }
+ } catch (Exception ex) {
+ throw new PerfSONARException("error.common.storage.xmldb",
+ "There is a problem to use xml database; " +
ex.getMessage());
+
+ }
}
- perfsonar: r3433 - trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/storage/xmldb/exist/xmlrpc, svnlog, 02/29/2008
Archive powered by MHonArc 2.6.16.