Apache S4
  1. Apache S4
  2. S4-74

NullPointerException on TCPEmitter.onChange()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Labels:
      None

      Description

      TCPEmitter is registering itself as a listener in its constructor: this.topology.addListener(this);

      The topology is triggering a refresh before the TCPEmitter is fully constructed, so TCPEmitter.partitionNodeMap is still null during onChange() execution.

      TCPEmitter shouldn't register itself as a listener until it's fully built, see http://www.ibm.com/developerworks/java/library/j-jtp0618/index.html#2 (Don't publish the "this" reference during construction)

        Activity

        Matthieu Morel made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Matthieu Morel made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tony Stevenson made changes -
        Workflow jira [ 12710710 ] no-reopen-closed, patch-avail [ 12711367 ]
        Matthieu Morel made changes -
        Fix Version/s 0.5 [ 12318653 ]
        Matthieu Morel made changes -
        Field Original Value New Value
        Assignee Matthieu Morel [ mmorel ]
        Daniel Gómez Ferro created issue -

          People

          • Assignee:
            Matthieu Morel
            Reporter:
            Daniel Gómez Ferro
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development