Hi,

Forwarding this to dev-group as this should be sent there. Sorry for the
mistake.

-Ishara

---------- Forwarded message ----------
From: Ishara Premadasa <ish...@wso2.com>
Date: Wed, May 8, 2013 at 9:49 AM
Subject: [Dev] SAML2 Web Browser based SSO with WSO2 IS demo webapp doesn't
work with IS 4.1.0
To: support-dev-group <support-dev-gr...@wso2.com>


Hi,

I was testing SSO with WSO2 IS as described in [1] and it seems the demo
web app doesn't work as expected with IS 4.1.0 version. When i try to log
in to Identity Server via the webapp, after entering the credentials and
trying to sign in it throws the following error.

java.lang.NullPointerException
        
org.wso2.identity.saml2.demo.SamlConsumerManager.getResult(SamlConsumerManager.java:278)
        
org.wso2.identity.saml2.demo.SamlConsumerManager.processResponseMessage(SamlConsumerManager.java:252)
        
org.wso2.identity.saml2.demo.SAML2ConsumerServlet.doPost(SAML2ConsumerServlet.java:77)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/7.0.39 logs.*

I debugged the source and this is given as the reason for the exception.

[Fatal Error] :1:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
    at
org.wso2.identity.saml2.demo.SamlConsumerManager.unmarshall(SamlConsumerManager.java:265)
    at
org.wso2.identity.saml2.demo.SamlConsumerManager.processResponseMessage(SamlConsumerManager.java:238)
    at
org.wso2.identity.saml2.demo.SAML2ConsumerServlet.doPost(SAML2ConsumerServlet.java:77)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at


The webapp works fine as expected with the IS 3.2.3 version. May be this is
due to some changes made in the 4.1.0 version.

Thanks!
Ishara

[1]
http://wso2.org/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server


-- 
Ishara Premasada
Software Engineer,
Integration Technology Team,
WSO2 Inc. http://wso2.com/
*Linked in   :  http://www.linkedin.com/pub/ishara-premadasa/1a/630/609
Twitter       :  https://twitter.com/ishadil
Mobile       : +94 714445832*





-- 
Ishara Premasada
Software Engineer,
Integration Technology Team,
WSO2 Inc. http://wso2.com/
*Linked in   :  http://www.linkedin.com/pub/ishara-premadasa/1a/630/609
Twitter       :  https://twitter.com/ishadil
Mobile       : +94 714445832*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to