Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15436

Stack Overflow when there is many notification filters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.11.7
    • Fix Version/s: 10.8-rc-1, 9.11.8
    • Component/s: Notifications
    • Labels:
      None
    • Environment:
      WIN Server 2012 R2, PostgreSQL 9.6.3, Jetty 9.4.8.v20171121
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I've updated my instance of XWiki 9.11.5 to 9.11.7.

      I'm still getting the same messages in my logs as in: https://jira.xwiki.org/browse/XWIKI-15160

      Furthermore the notification list is not working. There appears just a spinning wheel, no notifications appear.

       

      2018-07-16 10:50:36,427 [XWiki Scheduler initialization] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.DocumentUpdatedEvent@f50eaa90] to listener [org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener@16db886c] 
      java.lang.NullPointerException: null
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationPreferences(DefaultModelBridge.java:131)
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationsPreferences(DefaultModelBridge.java:107)
      	at org.xwiki.notifications.preferences.internal.CachedModelBridge.getNotificationsPreferences(CachedModelBridge.java:79)
      	at org.xwiki.notifications.preferences.internal.UserProfileNotificationPreferenceProvider.getPreferencesForUser(UserProfileNotificationPreferenceProvider.java:63)
      	at org.xwiki.notifications.preferences.internal.DefaultNotificationPreferenceManager.getAllPreferences(DefaultNotificationPreferenceManager.java:97)
      	at org.xwiki.notifications.preferences.internal.XWikiEventTypesEnabler.isNotificationDisabled(XWikiEventTypesEnabler.java:95)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.entityIsAlreadyInDesiredState(DefaultWatchedEntitiesManager.java:117)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.handleEntity(DefaultWatchedEntitiesManager.java:73)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.watchEntity(DefaultWatchedEntitiesManager.java:60)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.documentModifiedHandler(AutomaticWatchModeListener.java:135)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.onEvent(AutomaticWatchModeListener.java:106)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1812)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1718)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1708)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.saveStatus(SchedulerPlugin.java:636)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:413)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:164)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:76)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:123)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Thread.java:748)
      2018-07-16 10:50:36,546 [XWiki Scheduler initialization] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.DocumentUpdatedEvent@51a68f80] to listener [org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener@16db886c] 
      java.lang.NullPointerException: null
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationPreferences(DefaultModelBridge.java:131)
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationsPreferences(DefaultModelBridge.java:107)
      	at org.xwiki.notifications.preferences.internal.CachedModelBridge.getNotificationsPreferences(CachedModelBridge.java:79)
      	at org.xwiki.notifications.preferences.internal.UserProfileNotificationPreferenceProvider.getPreferencesForUser(UserProfileNotificationPreferenceProvider.java:63)
      	at org.xwiki.notifications.preferences.internal.DefaultNotificationPreferenceManager.getAllPreferences(DefaultNotificationPreferenceManager.java:97)
      	at org.xwiki.notifications.preferences.internal.XWikiEventTypesEnabler.isNotificationDisabled(XWikiEventTypesEnabler.java:95)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.entityIsAlreadyInDesiredState(DefaultWatchedEntitiesManager.java:117)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.handleEntity(DefaultWatchedEntitiesManager.java:73)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.watchEntity(DefaultWatchedEntitiesManager.java:60)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.documentModifiedHandler(AutomaticWatchModeListener.java:135)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.onEvent(AutomaticWatchModeListener.java:106)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1812)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1718)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1708)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.saveStatus(SchedulerPlugin.java:636)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:413)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:164)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:76)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:123)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Thread.java:748)
      2018-07-16 10:50:36,622 [XWiki Scheduler initialization] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.DocumentUpdatedEvent@a1aa2990] to listener [org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener@16db886c] 
      java.lang.NullPointerException: null
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationPreferences(DefaultModelBridge.java:131)
      	at org.xwiki.notifications.preferences.internal.DefaultModelBridge.getNotificationsPreferences(DefaultModelBridge.java:107)
      	at org.xwiki.notifications.preferences.internal.CachedModelBridge.getNotificationsPreferences(CachedModelBridge.java:79)
      	at org.xwiki.notifications.preferences.internal.UserProfileNotificationPreferenceProvider.getPreferencesForUser(UserProfileNotificationPreferenceProvider.java:63)
      	at org.xwiki.notifications.preferences.internal.DefaultNotificationPreferenceManager.getAllPreferences(DefaultNotificationPreferenceManager.java:97)
      	at org.xwiki.notifications.preferences.internal.XWikiEventTypesEnabler.isNotificationDisabled(XWikiEventTypesEnabler.java:95)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.entityIsAlreadyInDesiredState(DefaultWatchedEntitiesManager.java:117)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.handleEntity(DefaultWatchedEntitiesManager.java:73)
      	at org.xwiki.notifications.filters.watch.internal.DefaultWatchedEntitiesManager.watchEntity(DefaultWatchedEntitiesManager.java:60)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.documentModifiedHandler(AutomaticWatchModeListener.java:135)
      	at org.xwiki.notifications.filters.watch.internal.AutomaticWatchModeListener.onEvent(AutomaticWatchModeListener.java:106)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1812)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1718)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1708)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.saveStatus(SchedulerPlugin.java:636)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:413)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:164)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:76)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:123)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gdelhumeau Guillaume Delhumeau
                Reporter:
                Pako Patrick Koska
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: