Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10216

The indexation doesn't worked anymore because it tries to index non existing site in workspace archive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.2.13, 4.3.0
    • 4.2.9, 4.3.0
    • None
    • None
    • 4.3 M7, 4.3 RC2

      The siteManager must have a cache by workspaces ...

      Date : 16/01 17:19:12.836
      Thread : Thread[AmetysRuntimeScheduler_Worker-6,5,main]
      Niveau : ERROR
      Catégorie : org.ametys.cms.content.indexing.solr.SolrIndexer
      Message : Error indexing the workspace 'archives'.
      Emplacement : org.ametys.web.indexing.solr.SolrWebWorkspaceIndexer.doIndex(SolrWebWorkspaceIndexer.java:93)
      Pile d'appels :
      org.ametys.plugins.repository.UnknownAmetysObjectException: There's no node for id site://f1795a9c-1c89-4059-80e9-39accfd1a92a
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:187)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:137)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:126)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:58)
      at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:310)
      at org.ametys.web.repository.site.SiteManager.lambda$getSites$0(SiteManager.java:265)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1625)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      at org.ametys.web.repository.site.SiteManager.getSites(SiteManager.java:266)
      at org.ametys.web.indexing.solr.SolrWebWorkspaceIndexer.doIndex(SolrWebWorkspaceIndexer.java:66)
      at org.ametys.cms.indexing.solr.SolrWorkspaceIndexer._forceWorkspaceAndDoIndex(SolrWorkspaceIndexer.java:185)
      at org.ametys.cms.indexing.solr.SolrWorkspaceIndexer._index(SolrWorkspaceIndexer.java:155)
      at org.ametys.cms.indexing.solr.SolrWorkspaceIndexer.indexAllWorkspaces(SolrWorkspaceIndexer.java:111)
      at org.ametys.cms.indexing.GlobalWorkspaceIndexerSchedulable.execute(GlobalWorkspaceIndexerSchedulable.java:43)
      at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:151)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      Caused by: javax.jcr.ItemNotFoundException: f1795a9c-1c89-4059-80e9-39accfd1a92a
      at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:621)
      at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:538)
      at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1142)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:176)
      ... 21 more
      Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: f1795a9c-1c89-4059-80e9-39accfd1a92a
      at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:290)
      at org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState(LocalItemStateManager.java:110)
      at org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState(LocalItemStateManager.java:175)
      at org.apache.jackrabbit.core.state.XAItemStateManager.getItemState(XAItemStateManager.java:260)
      at org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState(SessionItemStateManager.java:161)
      at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:382)
      ... 26 more
      Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: f1795a9c-1c89-4059-80e9-39accfd1a92a
      at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.load(AbstractBundlePersistenceManager.java:492)
      at org.ametys.plugins.repository.provider.AmetysPersistenceManager.load(AmetysPersistenceManager.java:192)
      at org.apache.jackrabbit.core.state.SharedItemStateManager.loadItemState(SharedItemStateManager.java:1878)
      at org.apache.jackrabbit.core.state.SharedItemStateManager.getNonVirtualItemState(SharedItemStateManager.java:1798)
      at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:271)
      ... 31 more

            Unassigned Unassigned
            lbouchet Loïc Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: