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

Possible NullPointerException in JDBC_PING

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.5.1, 3.6
    • 3.5
    • None

      JGroups version: 3.5.0 final

      Caused by: java.lang.NullPointerException
      	at org.jgroups.protocols.JDBC_PING.readAll(Katalis.java:225)
      	at org.jgroups.protocols.JDBC_PING.readAll(Katalis.java:192)
      	at org.jgroups.protocols.JDBC_PING.findMembers(Katalis.java:128)
      	at org.jgroups.protocols.Discovery.findMembers(Katalis.java:226)
      	at org.jgroups.protocols.Discovery.down(Katalis.java:366)
      	at org.jgroups.protocols.JDBC_PING.down(Katalis.java:124)
      	at org.jgroups.protocols.MERGE2.down(Katalis.java:222)
      	at org.jgroups.protocols.FD_SOCK.down(Katalis.java:356)
      	at org.jgroups.protocols.FD_ALL.down(Katalis.java:233)
      	at org.jgroups.protocols.VERIFY_SUSPECT.down(Katalis.java:92)
      	at org.jgroups.protocols.pbcast.NAKACK2.down(Katalis.java:551)
      	at org.jgroups.protocols.UNICAST2.down(Katalis.java:584)
      	at org.jgroups.protocols.pbcast.STABLE.down(Katalis.java:347)
      	at org.jgroups.protocols.pbcast.ClientGmsImpl.joinInternal(Katalis.java:76)
      	at org.jgroups.protocols.pbcast.ClientGmsImpl.join(Katalis.java:41)
      	at org.jgroups.protocols.pbcast.GMS.down(Katalis.java:1084)
      	at org.jgroups.protocols.FlowControl.down(Katalis.java:349)
      	at org.jgroups.protocols.FlowControl.down(Katalis.java:349)
      	at org.jgroups.protocols.FRAG2.down(Katalis.java:136)
      	at org.jgroups.protocols.RSVP.down(Katalis.java:145)
      	at org.jgroups.stack.ProtocolStack.down(Katalis.java:1039)
      	at org.jgroups.JChannel.down(Katalis.java:785)
      	at org.jgroups.JChannel._connect(Katalis.java:558)
      	... 40 more
      

      I suspect that data is null. The code in line 225 is

                      if(local_addr != null && !local_addr.equals(data.getAddress()))
                          addDiscoveryResponseToCaches(data.getAddress(), data.getLogicalName(), data.getPhysicalAddr());
      

              rhn-engineering-bban Bela Ban
              thomaskatalis_jira Thomas Santosa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: