Dear Claus ,

What about this error when setting the header to change Reference URI ?

<setHeader headerName="CamelXmlSignatureContentReferenceUri">
                        <constant>#Body</constant>
</setHeader>

        <to 
                               
uri="xmlsecurity:sign://enveloped?keyAccessor=#accessorRsa&amp;addKeyInfoReference=true&amp;transformMethods=#NoCommTrans"
/>
                        <convertBodyTo type="String" />



it raises the following exception : 

org.apache.camel.component.xmlsecurity.api.XmlSignatureException:
javax.xml.crypto.dsig.XMLSignatureException:
javax.xml.crypto.URIReferenceException:
org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot
resolve element with ID Body 
        at
org.apache.camel.component.xmlsecurity.processor.XmlSignerProcessor.sign(XmlSignerProcessor.java:269)[camel-xmlsecurity-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.component.xmlsecurity.processor.XmlSignerProcessor.process(XmlSignerProcessor.java:198)[camel-xmlsecurity-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.component.xmlsecurity.XmlSignatureProducer.process(XmlSignatureProducer.java:39)[camel-xmlsecurity-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[camel-core-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[camel-core-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[camel-core-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.1.jar:2.12.1]
 
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.1.jar:2.12.1]
 



--
View this message in context: 
http://camel.465427.n5.nabble.com/contentObjectId-in-XML-Security-camel-xmlsecurity-tp5740265p5740401.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to