Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-868

NPE in SlingAuthenticator.findApplicableAuthenticationHandler

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Engine 2.0.4
    • Fix Version/s: Engine 2.0.4
    • Component/s: Engine
    • Labels:
      None

      Description

      Running the launchpad/testing tests in revision 746969 I get this stack trace a few times:

      2009-02-23 13:00:22.294::WARN: /org.apache.sling.launchpad.testing-4-incubator-SNAPSHOT/WaitForSlingStartup/1235390422271:
      java.lang.NullPointerException
      at org.apache.sling.engine.impl.auth.SlingAuthenticator.findApplicableAuthenticationHandlers(SlingAuthenticator.java:349)
      at org.apache.sling.engine.impl.auth.SlingAuthenticator.getAuthenticationInfo(SlingAuthenticator.java:468)
      at org.apache.sling.engine.impl.auth.SlingAuthenticator.authenticate(SlingAuthenticator.java:204)
      at org.apache.sling.engine.impl.SlingMainServlet.handleSecurity(SlingMainServlet.java:794)
      at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:86)

      Line 349 is

      AuthenticationHandlerInfo[] infos = byHostMap.get(hostname);

      so I assume it's byHostMap that can be null in some cases

        Attachments

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              bdelacretaz Bertrand Delacretaz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: