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

null pointer exception in UNICAST2 [line 847]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3, 3.4
    • 3.3
    • None
    • Low

      java.lang.NullPointerException: null
      at org.jgroups.protocols.UNICAST2.handleBatchReceived(UNICAST2.java:847) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:481) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:675) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.stack.Protocol.up(Protocol.java:406) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.FD.up(FD.java:274) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.stack.Protocol.up(Protocol.java:406) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.stack.Protocol.up(Protocol.java:406) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.DAISYCHAIN.up(DAISYCHAIN.java:183) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.stack.Protocol.up(Protocol.java:406) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.TP.passBatchUp(TP.java:1383) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at org.jgroups.protocols.TP$BatchHandler.run(TP.java:1519) ~[jgroups-3.3.0.Final.jar:3.3.0.Final]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) ~[na:1.6.0_26]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ~[na:1.6.0_26]
      at java.lang.Thread.run(Thread.java:662) ~[na:1.6.0_26]

          • line 847 from UNICAST2:

      if(added && total_len > 0 && entry.incrementStable(total_len) && win != null)

      should be replaced with:

      if(added && total_len > 0 && entry!=null && entry.incrementStable(total_len) && win != null)

              rhn-engineering-bban Bela Ban
              ioana90 Ioana Oltean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: