From 8210219209c3d19232ab02c7fc5e8b0bfa5ddeec Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Wed, 2 Mar 2016 14:43:46 +1100 Subject: [PATCH] ignore this error Signed-off-by: olivier lamy --- .../metadata/repository/jcr/JcrMetadataRepository.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java index 8fecba8a5..364930998 100644 --- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java +++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java @@ -42,6 +42,7 @@ import org.slf4j.LoggerFactory; import com.google.common.collect.ImmutableMap; +import javax.jcr.InvalidItemStateException; import javax.jcr.NamespaceRegistry; import javax.jcr.Node; import javax.jcr.NodeIterator; @@ -1346,6 +1347,9 @@ public class JcrMetadataRepository try { getJcrSession().save(); + } catch ( InvalidItemStateException e ) { + // olamy this might happen when deleting a repo while is under scanning + log.warn( "skip InvalidItemStateException:" + e.getMessage(), e ); } catch ( RepositoryException e ) { -- 2.39.5