You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/08/03 13:39:43 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue #2977: [Quarkus 2.2.0] XmlSecurity itests fail in native mode

jamesnetherton opened a new issue #2977:
URL: https://github.com/apache/camel-quarkus/issues/2977


   ```
   Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: Couldn't find Transform for: http://www.w3.org/2000/09/xmldsig#enveloped-signature
   	at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:551)
   	at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:360)
   	at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:490)
   	at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:375)
   	at org.apache.camel.component.xmlsecurity.processor.XmlSignerProcessor.sign(XmlSignerProcessor.java:304)
   	... 48 more
   Caused by: javax.xml.crypto.dsig.TransformException: Couldn't find Transform for: http://www.w3.org/2000/09/xmldsig#enveloped-signature
   	at org.jcp.xml.dsig.internal.dom.ApacheTransform.transformIt(ApacheTransform.java:144)
   	at org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java:112)
   	at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:154)
   	at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:455)
   	... 52 more
   Caused by: com.sun.org.apache.xml.internal.security.transforms.InvalidTransformException: Unknown transformation. No handler installed for URI http://www.w3.org/2000/09/xmldsig#enveloped-signature
   Original Exception was java.lang.InstantiationException: Type `com.sun.org.apache.xml.internal.security.transforms.implementations.TransformEnvelopedSignature` can not be instantiated reflectively as it does not have a no-parameter constructor or the no-parameter constructor has not been added explicitly to the native image.
   	at com.sun.org.apache.xml.internal.security.transforms.Transform.initializeTransform(Transform.java:355)
   	at com.sun.org.apache.xml.internal.security.transforms.Transform.<init>(Transform.java:134)
   	at org.jcp.xml.dsig.internal.dom.ApacheTransform.transformIt(ApacheTransform.java:137)
   	... 55 more
   Caused by: java.lang.InstantiationException: Type `com.sun.org.apache.xml.internal.security.transforms.implementations.TransformEnvelopedSignature` can not be instantiated reflectively as it does not have a no-parameter constructor or the no-parameter constructor has not been added explicitly to the native image.
   	at java.lang.Class.newInstance(DynamicHub.java:911)
   	at com.sun.org.apache.xml.internal.security.transforms.Transform.initializeTransform(Transform.java:351)
   	... 57 more
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] aldettinger commented on issue #2977: [Quarkus 2.2.0] XmlSecurity itests fail in native mode

Posted by GitBox <gi...@apache.org>.
aldettinger commented on issue #2977:
URL: https://github.com/apache/camel-quarkus/issues/2977#issuecomment-895423516


   I think the root cause could be that [ApacheXMLDSig](https://github.com/apache/camel/blob/main/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignerProcessor.java#L231..#L235) security provider is no more present in the native image.
   
   The [release note for graalvm 21.2](https://www.graalvm.org/release-notes/21_2/#java-and-compiler-updates)  mention something about *Removed unnecessary security providers from the image*.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton closed issue #2977: [Quarkus 2.2.0] XmlSecurity itests fail in native mode

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #2977:
URL: https://github.com/apache/camel-quarkus/issues/2977


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2977: [Quarkus 2.2.0] XmlSecurity itests fail in native mode

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2977:
URL: https://github.com/apache/camel-quarkus/issues/2977#issuecomment-895903279


   > I think the root cause could be that [ApacheXMLDSig](https://github.com/apache/camel/blob/main/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignerProcessor.java#L231..#L235) security provider is no more present in the native image.
   
   Yep, that was indeed the problem. Had to add a `BuildStep` for `NativeImageSecurityProviderBuildItem` and get that provider registered.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org