In case this error is related to the SAML module from the Marketplace, it's the Stacktrace that is being shown via an HTML template (located in /resources/SAML/templates).
The Stacktrace is being written to a constant, which is used in the template, in the SAMLRequestHandler.java file, located in javasource/saml20/implementation.
Hopefully that helps!