changeset 590:5f5f273c8566

Repaired error message parsing from resulting xml documents after feed() has been called. gnv/trunk@751 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 08 Mar 2010 17:09:28 +0000
parents 960ae818296e
children af3f56758f59 9a019c125b60
files gnv/ChangeLog gnv/src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Mon Mar 08 07:07:44 2010 +0000
+++ b/gnv/ChangeLog	Mon Mar 08 17:09:28 2010 +0000
@@ -1,3 +1,9 @@
+2010-03-08  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java:
+	  Adjusted xpath expression to find exception nodes in xml documents again.
+	  The prefix 'art:' has been missing.
+
 2010-03-08  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue187
--- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java	Mon Mar 08 07:07:44 2010 +0000
+++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java	Mon Mar 08 17:09:28 2010 +0000
@@ -781,7 +781,7 @@
                                                          throws ArtifactDatabaseClientException {
 
         String message = new XMLUtils().getStringXPath(document,
-                "/exceptionreport/exception");
+                "/art:exceptionreport/art:exception");
         if (message != null) {
             throw new ArtifactDatabaseClientException(message);
         }

http://dive4elements.wald.intevation.org