Error when trying accessing a new mandotary claim from SAML1.0 
---------------------------------------------------------------

                 Key: IDENTITY-196
                 URL: https://wso2.org/jira/browse/IDENTITY-196
             Project: WSO2 Identity Solution
          Issue Type: Improvement
          Components: relying-party-service
         Environment: WinXP, JDK1.5, IE7
            Reporter: Yumani Ranaweera
            Assignee: Dimuthu Leelarathne
            Priority: Critical


Steps:
-------
1. From IS admin console make a claim 'supported' (e.g. make Mobile No within 
http://schemas.xmlsoap.org/ws/2005/05/identity "supported")

2. Map the claim

3. Go to $IS_HOME\lib\tomcat\webapps\javarp and change the index.html to make 
the above claim a 'required cliam'

4. Go to $IS_HOME\lib\tomcat\webapps\javarp and change the login.jsp to add 
this claim in javarp
if(auth != null && TokenVerifierConstants.STATE_SUCCESS.equals(auth)) {
String givenName = 
(String)request.getAttribute(IdentityConstants.CLAIM_GIVEN_NAME);
String surname = (String)request.getAttribute(IdentityConstants.CLAIM_SURNAME);
String email = 
(String)request.getAttribute(IdentityConstants.CLAIM_EMAIL_ADDRESS);
String mobile = 
(String)request.getAttribute("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobile";);

AND
Add the print statement too.
e.g. : <%=HTMLEncoder.encode(mobile) %> </br>

5. Go to IS admin console >Card Issuer > Edit card issuer configuration and 
enable only  SAML 1.0, SAML1.1 token types.

6. From Idp sign-up a new user and download a managed card from his account.

7. Go to javarp and try to login to token type 1.1


Issue:
---------
Giving an error below;

ERROR [2008-04-07 16:02:47,875]  Servlet.service() for servlet jsp threw 
exception
java.lang.NullPointerException
        at 
org.wso2.solutions.identity.relyingparty.HTMLEncoder.encode(HTMLEncoder.java:23)
        at org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:93)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.wso2.solutions.identity.relyingparty.servletfilter.RelyingPartyFilter.doFilter(RelyingPartyFilter.java:106)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to