Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8584

NullPointerException on successful login for app-authz-jee-vanilla

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 4.5.0.Final
    • Quickstarts
    • Hide

      I basically followed the instructions here and here to set up app-authz-jee-vanilla.

      Show
      I basically followed the instructions here and here to set up app-authz-jee-vanilla.
    • NEW
    • NEW

    Description

      After following the instructions here and here, I get the following error:

      Error processing request
      Context Path:/app-authz-vanilla
      Servlet Path:/index.jsp
      Path Info:null
      Query String:null
      Stack Trace:
      org.apache.jasper.JasperException: java.lang.NullPointerException
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:473)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
      	at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	[REDACTED - attached full stack trace]
      

      When I comment out lines 34-45 in index.jsp, it doesn't throw the NPE. It looks like the getPermission on line 36 is returning null.

      Any ideas on what I did wrong?

      Attachments

        Activity

          Public project attachment banner

            context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
            current Project key: KEYCLOAK

            People

              Unassigned Unassigned
              greatmazinger-1 Raoul Veroy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: