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

Logs are polluted on cluster setup by error "Failed to convert local event"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 12.10.8
    • None
    • None
    • Custer setup with 4 nodes.
    • Unknown

    Description

      Users have reported logs being polluted (a message almost every second) by the following errors:

      2022-03-31 11:42:40,035 [Asynchronous handler for event store [legacy]] ERROR c.DefaultEventConverterManager - Failed to convert local event [event: [org.xwiki.eventstream.internal.events.EventStatusAddOrUpdatedEvent@3d421daa], source: [org.xwiki.eventstream.store.internal.LegacyEventStatus@b27ead], data: [null]]
      java.lang.ClassCastException: null
      2022-03-31 11:42:40,035 [Asynchronous handler for event store [legacy]] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.eventstream.internal.events.EventStatusAddOrUpdatedEvent@3d421daa] to listener [org.xwiki.observation.remote.internal.LocalEventListener@642e4fe]
      java.lang.IllegalArgumentException: java.io.NotSerializableException: org.xwiki.eventstream.store.internal.LegacyEvent
              at org.jgroups.Message.setObject(Message.java:304)
              at org.jgroups.Message.<init>(Message.java:146)
              at org.xwiki.observation.remote.internal.jgroups.JGroupsNetworkAdapter.send(JGroupsNetworkAdapter.java:90)
              at org.xwiki.observation.remote.internal.DefaultRemoteObservationManager.notify(DefaultRemoteObservationManager.java:142)
              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.store.internal.LegacyEventStatusManager.lambda$saveEventStatusInStore$2(LegacyEventStatusManager.java:203)
              at com.xpn.xwiki.internal.namespace.DefaultNamespaceContextExecutor.execute(DefaultNamespaceContextExecutor.java:63)
              at org.xwiki.eventstream.store.internal.LegacyEventStatusManager.saveEventStatusInStore(LegacyEventStatusManager.java:189)
              at org.xwiki.eventstream.store.internal.LegacyEventStatusManager.saveEventStatus(LegacyEventStatusManager.java:156)
              at org.xwiki.eventstream.store.internal.AbstractLegacyEventStore.syncSaveEventStatus(AbstractLegacyEventStore.java:91)
              at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.processTask(AbstractAsynchronousEventStore.java:382)
              at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.processTasks(AbstractAsynchronousEventStore.java:338)
              at org.xwiki.eventstream.internal.AbstractAsynchronousEventStore.run(AbstractAsynchronousEventStore.java:325)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.NotSerializableException: org.xwiki.eventstream.store.internal.LegacyEvent
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
              at org.jgroups.util.Util.objectToByteBuffer(Util.java:629)
              at org.jgroups.Message.setObject(Message.java:301)
              ... 16 common frames omitted
      

      Looking at the server logs we found 20k entries for " Failed to convert local event ".

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              oana.tabaranu Elena-Oana Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: