Uploaded image for project: 'ActivityPub Application'
  1. ActivityPub Application
  2. XAP-28

DocumentCreatedEventListener doesn't manage to resolve user when call by the notification scheduler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • 1.2.1
    • 1.0
    • None
    • Unknown
    • N/A
    • N/A

    Description

      We regularly obtain the following stacktrace in the console: (on AP 1.1)

      2020-03-30 10:00:00,067 [DefaultQuartzScheduler_Worker-1] ERROR l.DocumentCreatedEventListener - Error while trying to handle DocumentCreatedEvent for document [xwiki:XWiki.Notifications.NotificationEmailHourlySender] 
      org.xwiki.contrib.activitypub.ActivityPubException: Cannot find any user with reference [org.xwiki.user.CurrentUserReference@76ebba46]
      	at org.xwiki.contrib.activitypub.internal.DefaultActorHandler.getActor(DefaultActorHandler.java:122)
      	at org.xwiki.contrib.activitypub.internal.listeners.DocumentCreatedEventListener.onEvent(DocumentCreatedEventListener.java:119)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2055)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1959)
      	at org.xwiki.notifications.notifiers.internal.DefaultModelBridge.savePropertyInHiddenDocument(DefaultModelBridge.java:73)
      	at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.setPreviousFireTime(NotificationEmailJob.java:123)
      	at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.executeJob(NotificationEmailJob.java:72)
      	at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:76)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: