Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-501

NPE in Aries JNDI when trying to process an empty service list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.3
    • 0.3
    • JNDI
    • None

    Description

      When doing a lookup using osgi:servlcelist/ that has no matches I get an NPE when I call hasMore on the NamingEnumeration.

      Got an exception: java.lang.NullPointerException
      at org.apache.aries.jndi.url.ServiceRegistryListContext$ServiceNamingEnumeration.hasMoreElements(ServiceRegistryListContext.java:81)
      at org.apache.aries.jndi.url.ServiceRegistryListContext$ServiceNamingEnumeration.hasMore(ServiceRegistryListContext.java:71)
      at test.hot.extension.web.TestServlet.doGet(TestServlet.java:57)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1133)

      Attachments

        Activity

          People

            not Alasdair Nottingham
            timothyjward Timothy James Ward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: