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

ClassCastException in LegacyEventStatusEventConverter after upgrade to 12.6.4 in cluster mode

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      After upgrading XWiki.org in 12.6.4 we obtain the following stack trace in logs:

      2020-11-03 15:20:34,257 [Asynchronous handler for event store [solr]] ERROR c.DefaultEventConverterManager - Failed to convert local event [event: [org.xwiki.eventstream.events.MailEntityAddedEvent@73ef9fb9], source: [org.xwiki.eventstream.internal.DefaultEntityEvent@2518a203], data: [null]]
      java.lang.ClassCastException: null
      2020-11-03 15:20:35,238 [Asynchronous handler for event store [solr]] ERROR c.DefaultEventConverterManager - Failed to convert local event [event: [org.xwiki.eventstream.internal.events.EventStatusAddOrUpdatedEvent@5f25f127], source: [org.xwiki.eventstream.internal.DefaultEventStatus@49114108], data: [null]]
      java.lang.ClassCastException: class org.xwiki.eventstream.internal.DefaultEventStatus cannot be cast to class org.xwiki.eventstream.store.internal.LegacyEventStatus (org.xwiki.eventstream.internal.DefaultEventStatus and org.xwiki.eventstream.store.internal.LegacyEventStatus are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4a3bd45b)
      at org.xwiki.eventstream.store.internal.observation.LegacyEventStatusEventConverter.toRemote(LegacyEventStatusEventConverter.java:78)
      at org.xwiki.observation.remote.internal.converter.DefaultEventConverterManager.createRemoteEventData(DefaultEventConverterManager.java:107)
      at org.xwiki.observation.remote.internal.DefaultRemoteObservationManager.notify(DefaultRemoteObservationManager.java:138)
      at org.xwiki.observation.remote.internal.LocalEventListener.onEvent(LocalEventListener.java:118)
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:291)
      at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:337)
      at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.complete(AbstractAsynchronousEventStore.java:453)
      at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.afterTasks(AbstractAsynchronousEventStore.java:523)
      at org.xwiki.eventstream.store.solr.internal.SolrEventStore.afterTasks(SolrEventStore.java:140)
      at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.processTasks(AbstractAsynchronousEventStore.java:347)
      at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.run(AbstractAsynchronousEventStore.java:325)
      at org.glowroot.agent.plugin.executor.RunnableWrapper.run(RunnableWrapper.java:35)
      at java.base/java.lang.Thread.run(Thread.java:834)
      2020-11-03 15:20:35,239 [Asynchronous handler for event store [solr]] ERROR c.DefaultEventConverterManager - Failed to convert local event [event: [org.xwiki.eventstream.events.MailEntityAddedEvent@6c30dee8], source: [org.xwiki.eventstream.internal.DefaultEntityEvent@1c6ca680], data: [null]]
      java.lang.ClassCastException: null
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: