log.info("Completed SHIRE initialization");
} catch (OriginSiteMapperException e) {
- log.fatal("Unable load shibboleth site information." + e.getMessage());
- throw new UnavailableException("Unable load shibboleth site information." + e.getMessage());
+ log.fatal("Unable load shibboleth site information." + e);
+ throw new UnavailableException("Unable load shibboleth site information." + e);
} catch (KeyStoreException e) {
- log.fatal("Unable supplied keystore." + e.getMessage());
- throw new UnavailableException("Unable load supplied keystore." + e.getMessage());
+ log.fatal("Unable supplied keystore." + e);
+ throw new UnavailableException("Unable load supplied keystore." + e);
} catch (NoSuchAlgorithmException e) {
- log.fatal("Unable supplied keystore." + e.getMessage());
- throw new UnavailableException("Unable load supplied keystore." + e.getMessage());
+ log.fatal("Unable supplied keystore." + e);
+ throw new UnavailableException("Unable load supplied keystore." + e);
} catch (CertificateException e) {
- log.fatal("Unable supplied keystore." + e.getMessage());
- throw new UnavailableException("Unable load supplied keystore." + e.getMessage());
+ log.fatal("Unable supplied keystore." + e);
+ throw new UnavailableException("Unable load supplied keystore." + e);
} catch (IOException e) {
- log.fatal("Unable supplied keystore." + e.getMessage());
- throw new UnavailableException("Unable load supplied keystore." + e.getMessage());
+ log.fatal("Unable supplied keystore." + e);
+ throw new UnavailableException("Unable load supplied keystore." + e);
}
}
return s;
} catch (SAMLException e) {
- throw new ShireException("Error processing SAML assertion: " + e.getMessage());
+ throw new ShireException("Error processing SAML assertion: " + e);
}
}
} catch (IOException e) {
throw new ShireException(
- "Unable to write session to file (" + filename + ") : " + e.getMessage());
+ "Unable to write session to file (" + filename + ") : " + e);
}
}
*/
private void handleError(ShireException se, HttpServletRequest req, HttpServletResponse res) {
- log.error(se.getMessage());
+ log.error(se);
log.debug("Displaying error page.");
- req.setAttribute("errorText", se.getMessage());
+ req.setAttribute("errorText", se.toString());
req.setAttribute("requestURL", req.getRequestURI().toString());
RequestDispatcher rd = req.getRequestDispatcher("/wayferror.jsp");
}
throw new OriginSiteMapperException("Unable to verify signature on registry file: no signature found.");
} catch (SAXException e) {
- throw new OriginSiteMapperException("Problem parsing site configuration" + e.getMessage());
+ throw new OriginSiteMapperException("Problem parsing site configuration" + e);
} catch (IOException e) {
- throw new OriginSiteMapperException("Problem accessing site configuration" + e.getMessage());
+ throw new OriginSiteMapperException("Problem accessing site configuration" + e);
} catch (ParserConfigurationException pce) {
- throw new OriginSiteMapperException("Parser configuration error" + pce.getMessage());
+ throw new OriginSiteMapperException("Parser configuration error" + pce);
} finally {
if (builder != null)
org.opensaml.XML.parserPool.put(builder);