<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#003300">
<br>
Hello,<br>
<br>
I base my code on what I found here :<br>
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/plugins/viewsource/viewpagesrc.action?pageId=3277019">https://wiki.shibboleth.net/confluence/plugins/viewsource/viewpagesrc.action?pageId=3277019</a><br>
<br>
As I recuperated some code from another project, so from what I
could gather ... it seems I do most things needed like :<br>
[code]<br>
try {<br>
DefaultBootstrap.bootstrap();<br>
} catch (ConfigurationException e) {<br>
throw new SAMLEngineRuntimeException("Error initializing
Open SAML", e);<br>
}<br>
[/code]<br>
<br>
but the marshaller returned by the "marshallerFactory" is always
"null" thought listening to the logger "org.opensaml" shows no
warning that the initialization is not OK :(<br>
<br>
<br>
Here is a Sniplet of "my" code <br>
<br>
[code]<br>
public byte[] marshall(final XMLObject samlToken) throws
MarshallingException, ParserConfigurationException,
TransformerException {<br>
<br>
if (LOG.isTraceEnabled()) <br>
LOG.trace("Request to marshall : " +
LoggingConstant.START_TRACE_TAG + samlToken.toString() +
LoggingConstant.END_TRACE_TAG);<br>
<br>
javax.xml.parsers.DocumentBuilder docBuilder;<br>
// Get the marshaller factory<br>
MarshallerFactory marshallerFactory =
Configuration.getMarshallerFactory();<br>
// Get the Subject marshaller<br>
Marshaller marshaller =
marshallerFactory.getMarshaller(samlToken); // marshaller is 'null'
after this statement<br>
docBuilder = dbf.newDocumentBuilder();<br>
Document doc = docBuilder.newDocument();<br>
// Marshall the SAML token<br>
marshaller.marshall(samlToken, doc); // throws
(obviously a NullPointer)<br>
...<br>
[/code]<br>
<br>
What step am I missing ???<br>
<br>
\T,<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
Thomas Lionel SMETS, CISSP (385434)<br>
<br>
PGP = FDF0 8FB8 4F37 3F79 1011 05AB 0DCE 9BAB 5DD0 0E10
</div>
</body>
</html>