OpenAM IDP Proxy Gives Null pointer exception instead of redirecting

Tagged: 

This topic has 1 reply, 2 voices, and was last updated 5 years, 4 months ago by eldoraman.

  • Author
    Posts
  • #12808
     sphsms
    Participant

    I have been trying to follow the following tutorial for OpenAM 13.5:

    https://wikis.forgerock.org/confluence/display/openam/SAMLv2+IDP+Proxy+Part+1.+Setting+up+a+simple+Proxy+scenario#SAMLv2IDPProxyPart1.SettingupasimpleProxyscenario-Step3:ConfiguringtheIdentityProviderProxy(machineb)

    Before trying the URL at the end of that scenario to test the Proxy, I tested the simple scenario of peforming a SP Initiated SSO, which succeeded.

    When I try the URL at the end of the tutorial, I get the following exception:

    type Exception report

    message AMSetupFilter.doFilter

    description The server encountered an internal error that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: AMSetupFilter.doFilter
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:141)
    org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
    root cause

    org.apache.jasper.JasperException: java.lang.NullPointerException
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
    org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
    root cause

    java.lang.NullPointerException
    com.sun.identity.saml2.profile.IDPProxyUtil.sendProxyAuthnRequest(IDPProxyUtil.java:179)
    org.forgerock.openam.saml2.UtilProxySAMLAuthenticator.redirectToAuth(UtilProxySAMLAuthenticator.java:546)
    org.forgerock.openam.saml2.UtilProxySAMLAuthenticator.authenticate(UtilProxySAMLAuthenticator.java:286)
    com.sun.identity.saml2.profile.IDPSSOFederate.process(IDPSSOFederate.java:236)
    com.sun.identity.saml2.profile.IDPSSOFederate.doSSOFederate(IDPSSOFederate.java:142)
    com.sun.identity.saml2.profile.IDPSSOFederate.doSSOFederate(IDPSSOFederate.java:102)
    org.apache.jsp.saml2.jsp.idpSSOFederate_jsp._jspService(idpSSOFederate_jsp.java:157)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
    org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.69 logs.

    I am unable to figure out as to why that might be happening. I have all three servers as part of the same circle of trust. I have followed the tutorial link well. Also, I noticed in that tutorial that while configuring IDProxy they have:

    Specify metaAlias for hosted service provider to be created. The format must be /: /proxysp
    Specify metaAlias for hosted identity provider to be created. The format must be /: /proxyidp

    although the metaAlias should be /sp and /idp as in the final testing URL, meta alias is sp. Is there some value that is missing, as it gives a null pointer exception?Any help will be appreciated. Thank You.

    #12822
     sphsms
    Participant

    I fixed this issue. It was an error on my part.

    #17251
     eldoraman
    Participant

    NullPointerExceptions are exceptions that occur when you try to use a reference that points to no location in memory (null) as though it were referencing an object. Calling a method on a null reference or trying to access a field of a null reference will trigger a NullPointerException. These are the most common, but other ways are listed on the NullPointerException javadoc page.

    Eldo

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?