From: olivier lamy Date: Wed, 2 Mar 2016 03:43:46 +0000 (+1100) Subject: ignore this error X-Git-Tag: archiva-2.2.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8210219209c3d19232ab02c7fc5e8b0bfa5ddeec;p=archiva.git ignore this error Signed-off-by: olivier lamy --- 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 ) {