incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1368017 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java
Date Wed, 01 Aug 2012 14:27:37 GMT
Author: cziegeler
Date: Wed Aug  1 14:27:36 2012
New Revision: 1368017

URL: http://svn.apache.org/viewvc?rev=1368017&view=rev
Log:
SLING-2408 : JcrNodeResourceIterator logs on error level for deleted Nodes

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java?rev=1368017&r1=1368016&r2=1368017&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java
Wed Aug  1 14:27:36 2012
@@ -21,6 +21,7 @@ package org.apache.sling.jcr.resource.in
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 
+import javax.jcr.ItemNotFoundException;
 import javax.jcr.NodeIterator;
 
 import org.apache.sling.api.resource.Resource;
@@ -92,7 +93,11 @@ public class JcrNodeResourceIterator imp
                     nodes.nextNode(), dynamicClassLoader);
                 LOGGER.debug("seek: Returning Resource {}", resource);
                 return resource;
-            } catch (Throwable t) {
+            } catch (final ItemNotFoundException infe) {
+                LOGGER.debug(
+                                "seek: Problem creating Resource for next node, skipping",
+                                infe);
+            } catch (final Throwable t) {
                 LOGGER.error(
                     "seek: Problem creating Resource for next node, skipping",
                     t);



Mime
View raw message