Skip to Content.
Sympa Menu

mace-opensaml-users - Exception while parsing SAML token

Subject: OpenSAML user discussion

List archive

Exception while parsing SAML token


Chronological Thread 
  • From:
  • To:
  • Subject: Exception while parsing SAML token
  • Date: Tue, 27 Oct 2009 10:37:10 -0400 (EDT)


I am trying to parse a SAML token .
and decoding that token using Base64.decode(encodedSAMLXml);
I Included all those Jar file in Tomcat
xalan
xalan-2.6.0
xalan-2.7.1
xalan-2.7.1-serializer
I am getting the following error:
Please help me to resolve this excception.


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException:
org.apache.xml.serializer.Encodings.isRecognizedEncoding(Ljava/lang/String;)Z

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

javax.servlet.ServletException:
org.apache.xml.serializer.Encodings.isRecognizedEncoding(Ljava/lang/String;)Z

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)

org.apache.jsp.service_005fprovider_jsp._jspService(service_005fprovider_jsp.java:175)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

java.lang.NoSuchMethodError:
org.apache.xml.serializer.Encodings.isRecognizedEncoding(Ljava/lang/String;)Z

org.apache.xml.serializer.dom3.LSSerializerImpl.write(LSSerializerImpl.java:926)
org.opensaml.xml.util.XMLHelper.writeNode(XMLHelper.java:834)
org.opensaml.xml.util.XMLHelper.nodeToString(XMLHelper.java:789)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:141)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:125)

org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:135)
org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:75)

org.apache.jsp.service_005fprovider_jsp._jspService(service_005fprovider_jsp.java:119)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.5.28



Archive powered by MHonArc 2.6.16.

Top of Page