Problem in Logout request for Post binding

Brent Putman putmanb at georgetown.edu
Wed Jan 15 17:49:06 EST 2020


On 1/15/20 1:03 PM, rahul sharma wrote:
> try {
>                  final HTTPPostEncoder pe = new HTTPPostEncoder();
>                  pe.setHttpServletResponse(response);
>                  pe.setMessageContext(mc);
>                  pe.initialize();
>                  pe.prepareContext();
>                  pe.encode();
>              } catch (final MessageEncodingException |
> ComponentInitializationException e) {
>                  logger.warn("SAML2Request generation failed: {}",
> e.getMessage(), e);
>              }
>
> *This is the error I got *- SAML2Request generation failed: VelocityEngine
> must be supplied
> net.shibboleth.utilities.java.support.component.ComponentInitializationException:
> VelocityEngine must be supplied
> 	at
> org.opensaml.saml.saml2.binding.encoding.impl.HTTPPostEncoder.doInitialize(HTTPPostEncoder.java:128)


The error is pretty self-explanatory.  You must supply a VelocityEngine 
instance to the HTTPPostEncoder instance via the corresponding setter 
before you call initialize() on it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20200115/ca326f64/attachment.html>


More information about the dev mailing list