Uploaded image for project: 'jUDDI (Retired)'
  1. jUDDI (Retired)
  2. JUDDI-375

Null Pointer Exception in SubscriptionNotifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • core
    • None
    • org.apache.juddi.subscription.SubscriptionNotifier
      When load becomes significant and the notifier falls behind.

    Description

      When the load becomes significant it is possible for the following if statement at line 144 to resolve to false resulting in a null pointer being returned

      144: if (subscription.getLastNotified()==null || nextDesiredNotificationDate.after(startPoint) && nextDesiredNotificationDate.before(endPoint)) {

      If this if statement is sensible then there needs to be a null pointer check around line 87 to avoid NullPointerException. I could see something like this:

      86: GetSubscriptionResults getSubscriptionResults = buildGetSubscriptionResults(subscription, new Date(scheduledExecutionTime()));
      if(getSubscriptionResults == null)
      continue;
      87: getSubscriptionResults.setSubscriptionKey(subscription.getSubscriptionKey());

      I apologize that I cannot test and commit this change through subversion. I put priority to minor since the NPE seems to have relatively little impact in the long term, but in the short term all remaining subscriptions are skipped.

      Attachments

        Activity

          People

            kstam Kurt Stam
            atp Adam Pryce
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: