Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-424

pbcast.STATE_TRANSFER throws NullPointerException during serialization of StateHeader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.4.1 SP1
    • 2.4.1
    • None
    • JDK 1.4.2_13

    • Hide

      I added a check in pbcast.STATE_TRANSFER.StateHeader.writeExternal against null and set the state_id to an empty string if null. In readExternal, I set state_id to null if the string is of length 0. But I think this is only a "dirty" hack. It's not completely clear to me, under which circumstances state_id gets null.

      Show
      I added a check in pbcast.STATE_TRANSFER.StateHeader.writeExternal against null and set the state_id to an empty string if null. In readExternal, I set state_id to null if the string is of length 0. But I think this is only a "dirty" hack. It's not completely clear to me, under which circumstances state_id gets null.

      The pbcast.STATE_TRANSFER.StateHeader class does not check if state_id is null during serialization. This leads in my case to a NullPointerException which stops the complete state transfer and results in two members that are not in sync.

              rhn-engineering-bban Bela Ban
              danielhasler_jira Daniel Hasler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: