Skip to Content.
Sympa Menu

mace-opensaml-users - SAXParseException?

Subject: OpenSAML user discussion

List archive


Chronological Thread 
  • From: "Paul Hethmon" <>
  • To: <>
  • Subject: SAXParseException?
  • Date: Wed, 25 Apr 2007 09:26:26 -0700

Ok, so I had this working a few weeks ago and can't figure out what has changed. I've got a snapshot of the opensaml2 libraries as of about March 23rd that builds (mostly, at least I didn't change much). I'm creating an AuthnRequest in one application and passing it to my Idp. When the Idp goes to decode the incoming HTTP form post, it is throwing the exception:


 org.xml.sax.SAXParseException: Content is not allowed in prolog.


So I went back to opensaml2 code and added another logging statement to actually print out the base64 decoded value from SAMLRequest. I don't see anything wrong with it, looking at the plain text or flipping the view to hex to make sure there are no "unprintable" characters. From my code, I'm calling HTTPPostDecoder.decode().


So the code snippet looks like:


HTTPPostDecoder decode = new HTTPPostDecoder();

decode.setParserPool( new ParserPool() );

decode.setRequest( request );



Any thoughts on where to look next?






Paul Hethmon

cell: 865.250.3517

work: 865.769.0456


Archive powered by MHonArc 2.6.16.

Top of Page