org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4 org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4

Apache's JIRA Issue Tracker | Stefan Egli | 2 years ago
  1. 0

    We've seen race-conditions, where the repository refuses to delete a node, with the following exception: {code} 16.07.2014 14:58:59.134 *ERROR* [pool-5-thread-5] org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler checkView: encountered a persistence exception during view check: org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4 org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4 at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.delete(JcrResourceProvider.java:491) at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.delete(ResourceResolverImpl.java:1044) at org.apache.sling.discovery.impl.cluster.voting.VotingHandler.promote(VotingHandler.java:314) at org.apache.sling.discovery.impl.cluster.voting.VotingHandler.analyzeVotings(VotingHandler.java:141) at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.doCheckView(HeartbeatHandler.java:299) at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.checkView(HeartbeatHandler.java:277) at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.run(HeartbeatHandler.java:153) at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:105) at org.quartz.core.JobRunShell.run(JobRunShell.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.jcr.ItemNotFoundException: 4f06dc87-401d-44b6-b6da-2e0bff2e2bb6 at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384) at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:669) at org.apache.jackrabbit.core.NodeImpl.onRemove(NodeImpl.java:696) at org.apache.jackrabbit.core.NodeImpl.removeChildNode(NodeImpl.java:624) at org.apache.jackrabbit.core.ItemRemoveOperation.perform(ItemRemoveOperation.java:78) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:322) at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.delete(JcrResourceProvider.java:486) ... 11 more {code} While this needs to be treated at the repository level, the discovery.impl can help work around this issue by following a tested workaround: * when delete fails, try to rename the 'previousview' node to 'previousview_trash_${UUID}'

    Apache's JIRA Issue Tracker | 2 years ago | Stefan Egli
    org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4 org.apache.sling.api.resource.PersistenceException: Unable to delete resource at /var/discovery/impl/previousView/4df5cd91-c99c-45d3-9b27-728c6e84f0f4
  2. 0

    Multiline input hangs logstash

    GitHub | 2 years ago | runningman84
    javax.jcr.ItemNotFoundException: f6c40ccb-3215-4d28-aafe-be8188f3de54
  3. 0

    using jcr mix:lifecycle in jackrabbit

    jackrabbit-users | 4 years ago | Malzer Ferdinand OSP sIT
    javax.jcr.ItemNotFoundException: f52a8133-7b00-4227-a032-3bd5e7649de1/{http://www.jcp.org/jcr/1.0}lifecyclePolicy
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebDav error

    openl-tablets | 4 years ago | nobody
    org.openl.rules.workspace.deploy.DeploymentException: Failed to deploy: Failed to notify changes
  6. 0

    We're trying to upgrade an artifact version (tim-annotations-1.4.1.jar), while trying to fetch the jar from our Terracotta Mirror repo, we got the following error: 2009-12-01 17:02:27,734 [http-8080-5] [WARN ] (o.a.r.j.StoringRepoMixin:746) - File 'terracotta-cache:org/terracotta/modules/tim-annotations/1.4.1/tim-annotations-1.4.1.jar' was deleted during request! After that I've tried to search for "tim-annotations" and received the following error: javax.jcr.ItemNotFoundException: failed to build path of 297dd18c-c319-4299-a267-3d8de4f5023f: fa784238-7040-45f9-a84e-3e541fccf816 has no child entry for 297dd18c-c319-4299-a267-3d8de4f5023f at org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManagerImpl.java:289) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.CachingHierarchyManager.buildPath(CachingHierarchyManager.java:195) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyManagerImpl.java:393) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.CachingHierarchyManager.getPath(CachingHierarchyManager.java:229) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.ItemImpl.getPrimaryPath(ItemImpl.java:213) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.NodeImpl.getPrimaryPath(NodeImpl.java:3240) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1271) [jackrabbit-core-jfrog-1.5.7b.jar:na] at org.artifactory.search.ArtifactSearcher.doSearch(ArtifactSearcher.java:63) [artifactory-core-2.1.2.jar:na] at org.artifactory.search.ArtifactSearcher.doSearch(ArtifactSearcher.java:43) [artifactory-core-2.1.2.jar:na] at org.artifactory.search.SearcherBase.search(SearcherBase.java:79) [artifactory-core-2.1.2.jar:na] at org.artifactory.search.SearchServiceImpl.searchArtifacts(SearchServiceImpl.java:116) [artifactory-core-2.1.2.jar:na] at sun.reflect.GeneratedMethodAccessor2441.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_14] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_14] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.2.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.2.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6] at $Proxy31.searchArtifacts(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor2440.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_14] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_14] at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) [wicket-ioc-1.3.7.jar:1.3.7] at org.apache.wicket.proxy.$Proxy124.searchArtifacts(Unknown Source) [na:1.3.7] at org.artifactory.webapp.wicket.page.search.artifact.ArtifactSearchPanel.search(ArtifactSearchPanel.java:134) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.artifact.ArtifactSearchPanel.searchArtifacts(ArtifactSearchPanel.java:117) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.BaseSearchPanel.fetchResults(BaseSearchPanel.java:215) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.artifact.ArtifactSearchPanel.<init>(ArtifactSearchPanel.java:59) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.BaseSearchPage$1.getPanel(BaseSearchPage.java:72) [artifactory-web-application-2.1.2.jar:na] at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab(TabbedPanel.java:313) [wicket-extensions-1.3.7.jar:1.3.7] at org.artifactory.webapp.wicket.page.search.BaseSearchPage.addTabs(BaseSearchPage.java:118) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.BaseSearchPage.<init>(BaseSearchPage.java:64) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.search.artifact.ArtifactSearchPage.<init>(ArtifactSearchPage.java:41) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.wicket.page.base.BasePage$2.onSubmit(BasePage.java:154) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:108) [artifactory-web-common-2.1.2.jar:na] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:128) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:104) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.request(RequestCycle.java:532) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201) [wicket-1.3.7.jar:1.3.7] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:165) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.2.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:110) [artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.2.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.2.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.2.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) [tomcat-coyote.jar:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:na] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_14]

    JFrog JIRA | 7 years ago | Gilad Garon
    javax.jcr.ItemNotFoundException: failed to build path of 297dd18c-c319-4299-a267-3d8de4f5023f: fa784238-7040-45f9-a84e-3e541fccf816 has no child entry for 297dd18c-c319-4299-a267-3d8de4f5023f

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.jcr.ItemNotFoundException

      4f06dc87-401d-44b6-b6da-2e0bff2e2bb6

      at org.apache.jackrabbit.core.ItemManager.getItemData()
    2. Jackrabbit Core
      ItemImpl.remove
      1. org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384)
      2. org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:669)
      3. org.apache.jackrabbit.core.NodeImpl.onRemove(NodeImpl.java:696)
      4. org.apache.jackrabbit.core.NodeImpl.removeChildNode(NodeImpl.java:624)
      5. org.apache.jackrabbit.core.ItemRemoveOperation.perform(ItemRemoveOperation.java:78)
      6. org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      7. org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      8. org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:322)
      8 frames
    3. org.apache.sling
      QuartzJobExecutor.execute
      1. org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.delete(JcrResourceProvider.java:486)
      2. org.apache.sling.resourceresolver.impl.ResourceResolverImpl.delete(ResourceResolverImpl.java:1044)
      3. org.apache.sling.discovery.impl.cluster.voting.VotingHandler.promote(VotingHandler.java:314)
      4. org.apache.sling.discovery.impl.cluster.voting.VotingHandler.analyzeVotings(VotingHandler.java:141)
      5. org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.doCheckView(HeartbeatHandler.java:299)
      6. org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.checkView(HeartbeatHandler.java:277)
      7. org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.run(HeartbeatHandler.java:153)
      8. org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:105)
      8 frames
    4. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:207)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames