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

ERROR DefaultObservationManager appears in the wiki console when creating a subwiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 15.4
    • 15.4-rc-1
    • None
    • Windows 11, XWiki 15.4 RC1 with MySQL 8.0 and Chrome 113
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. As Admin create a new subwiki with default options

      Actual results: While the subwiki in being created the following Error message appears in the wiki console

      2023-05-25 14:02:10,229 [com.xpn.xwiki.internal.WikiInitializerJob@d6cc856([initialization, wiki, subwiki01])] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.WikiReadyEvent@25d49adf] to listener [org.xwiki.rendering.internal.configuration.DisabledSyntaxEventListener@61cb1dfc]
      java.lang.ClassCastException: class java.lang.String cannot be cast to class com.xpn.xwiki.XWiki (java.lang.String is in module java.base of loader 'bootstrap'; com.xpn.xwiki.XWiki is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @764faa6)
              at org.xwiki.rendering.internal.configuration.DisabledSyntaxEventListener.onEvent(DisabledSyntaxEventListener.java:103)
              at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:338)
              at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:303)
              at com.xpn.xwiki.internal.WikiInitializerJob.runInternal(WikiInitializerJob.java:106)
              at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
              at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:834) 

      NOTE: Tested on 15.3 and doesn't reproduce so it's a regression.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              ganechitoaei Gabriela Anechitoaei
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: