Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1964

showSubscriptionTable MBean Method - NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-native-3.0.1
    • jbossws-2.0.1.SP2
    • ws-eventing
    • None
    • Workaround Exists
    • Hide

      Just set the FilterType object for the notification subscription.

      Show
      Just set the FilterType object for the notification subscription.
    • Low

      The showSubscriptionTable() method in the SubscriptionManager.java does not expect null FilterType object, thus raising NullPointerException:

      org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager.java
      460: pw.println("<tr><td>" + s.getIdentifier() + "</td><td>" + s.getExpires() + "</td><td>" + s.getFilter().getExpression() + "</td></tr>");

      the snippet:
      s.getFilter().getExpression()

      should be:
      ((s.getFilter() != null)?s.getFilter().getExpression():"")
      or something like that.

              rhn-support-asoldano Alessio Soldano
              asouza_2000 Antonio Souza (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified