Uploaded image for project: 'Content IO'
  1. Content IO
  2. CONTENTIO-61

NPE when synchronizing in IndexContentObserver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.0
    • 3.0.0
    • None

      nable to dispatch event: event[id: contentio.content.synchronized, issuer: UserIdentity [login=system-user, population=admin_population], args: [content = '/ametys:plugins/contentio/ametys:contents/student1-laure-lopez-fr' (content://44309727-0221-4e8a-9238-38481794f721)]] to asynchronous observers
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:
      java.lang.NullPointerException
      	at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:295)
      	at org.ametys.cms.content.indexing.solr.observation.IndexContentObserver.observe(IndexContentObserver.java:89)
      	at org.ametys.core.observation.ObservationManager$ParallelAsyncObserve._observe(ObservationManager.java:325)
      	at org.ametys.core.observation.ObservationManager$AbstractAsyncObserve.run(ObservationManager.java:274)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      

      I think it's since the observer is async

      In my collection, Id do not tick "Validate the contents"
      I think the resolve fails because the current workspace is 'live' instead of 'default'. Or maybe the event is thrown too soon ??? To be checked...

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: