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

Notifications related errors when upgrading XWiki from 8.4.6 to 10.11.8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.11.8
    • Fix Version/s: 11.3.1, 11.5-rc-1, 10.11.9
    • Component/s: Notifications
    • Labels:
      None
    • Environment:
      Windows 10 Pro 64 bit, Chrome 74, IE11, Edge 18, Firefox 67, using a local instance XWiki 10.1.8 on HSQL 2.4.1, MySQL 5.7 and PostgreSQL 11
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Create an older instance of XWiki (e.g. 8.4.6)
      2. Close the instance
      3. Go to a newer instance (10.11.8) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version

      1. Start XWiki and follow the Distribution Wizard through the upgrade process

      EXPECTED RESULTS

      The upgrade process is completed successfully without errors.

      ACTUAL RESULTS

      After the very last step, when entering the upgraded instance, there are encountered some errors related to notifications. Stacktrace: 

      2019-05-30 16:24:51,997 [Notification event executor: 1 : count : [4true/0///////21//////5xwiki/true]] ERROR .r.i.NotificationEventExecutor - Failed to retrieve notifications for cache key [4true/0///////21//////5xwiki/true] 
      java.lang.UnsupportedOperationException: null
      	at java.util.AbstractList.add(Unknown Source)
      	at java.util.AbstractList.add(Unknown Source)
      	at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:98)
      	at org.xwiki.notifications.rest.internal.DefaultNotificationsResource.getCompositeEvents(DefaultNotificationsResource.java:374)
      	at org.xwiki.notifications.rest.internal.DefaultNotificationsResource.getCompositeEvents(DefaultNotificationsResource.java:328)
      	at org.xwiki.notifications.rest.internal.DefaultNotificationsResource.lambda$getCompositeEvents$0(DefaultNotificationsResource.java:187)
      	at org.xwiki.notifications.rest.internal.NotificationEventExecutor$CallableEntry.execute(NotificationEventExecutor.java:181)
      	at org.xwiki.notifications.rest.internal.NotificationEventExecutor$CallableEntry.call(NotificationEventExecutor.java:146)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)

      Please also find attached the console log from MySQL 5.7.
      The issue could not be reproduced when upgrading to XWiki 10.11.7.

        Attachments

          Activity

            People

            • Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              iandriuta Ilie Andriuta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: