Details
-
Bug
-
Resolution: Fixed
-
Major
-
9.11.4
-
Windows 10, XWiki 9.11.4 with PostgreSQL 9.6.3 and Chrome 65
-
Unknown
-
N/A
-
N/A
-
Description
I've created a new instance of XWiki 9.11.4 with PostgreSQL 9.6.3 and Chrome 65. Created and removed some pages and after some time my instance kept loading and I got the following error in the console:
2018-04-02 13:20:50,260 [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@f913d5] 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(Unknown Source) 2018-04-02 13:20:50,402 [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@f913d5] 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(Unknown Source) 2018-04-02 13:20:50,520 [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@f913d5] 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(Unknown Source)
I've created again the connection with PostgreSQL, from zero with no database and started to run some tests again. This time the error appeared when I clicked on Extensions from Administer Wiki.
Can't find a clear pattern on why this error keeps appearing, I get in randomly.