Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-627

Cutover to DynamicDeliveryPlan causes ClassCastException

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.2.Final, 2.4.0.CR1
    • Fix Version/s: 2.4.0.Final
    • Component/s: ErraiBus
    • Labels:
      None

      Description

      After 100 changes to the subscriber list for a topic, the server-side message bus replaces the normal DeliveryPlan (which is actually just a list of subscribers, represented by MessageCallback objects) with a specialized DynamicDeliveryPlan instance. As it turns out, DynamicDeliveryPlan stores the subscriber list in an ConcurrentSkipListMap, which requires its entries to implement Comparable. MessageCallback implementations are generally not Comparable, so ClassCastExceptions abound.

      See https://community.jboss.org/message/836167#836167 for the original report.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jfuerth Jonathan Fuerth
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: