You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by " Ronny Perinke (Jira)" <ji...@apache.org> on 2021/09/17 18:28:00 UTC

[jira] [Closed] (SANTUARIO-580) Exception with Java 17 when signing a message with keyReferenceType="Identifier"

     [ https://issues.apache.org/jira/browse/SANTUARIO-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronny Perinke closed SANTUARIO-580.
-----------------------------------
    Resolution: Not A Problem

opened as [metro-wsit issue #130|https://github.com/eclipse-ee4j/metro-wsit/issues/130]

> Exception with Java 17 when signing a message with keyReferenceType="Identifier"
> --------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-580
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-580
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 2.2.3
>            Reporter:  Ronny Perinke
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>              Labels: Java17
>
> Signing a message with X509Token keyReferenceType="Identifier" fails with the following exception.
> keyReferenceType="IssuerSerialNumber" is fine as well as keyReferenceType="Direct".
> {code:title=Error}
> java.lang.IllegalAccessError: class com.sun.wsit.security.SunKeyIdentifierSPI (in unnamed module @0x6737fd8f) cannot access class sun.security.util.DerValue (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x6737fd8f
> 	at com.sun.wsit.security.SunKeyIdentifierSPI.getSubjectKeyIdentifier(SunKeyIdentifierSPI.java:34)
> 	at com.sun.xml.wss.core.reference.X509SubjectKeyIdentifier.getSubjectKeyIdentifier(X509SubjectKeyIdentifier.java:83)
> 	at com.sun.xml.wss.impl.keyinfo.KeyIdentifierStrategy.getKeyIdentifier(KeyIdentifierStrategy.java:134)
> 	at com.sun.xml.wss.impl.keyinfo.KeyIdentifierStrategy.insertKey(KeyIdentifierStrategy.java:87)
> 	at com.sun.xml.wss.impl.dsig.SignatureProcessor.handleX509Binding(SignatureProcessor.java:1968)
> 	at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:411)
> 	at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:621)
> 	at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:578)
> 	at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:69)
> 	at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:248)
> 	at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:164)
> 	at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:125)
> 	at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:82)
> {code}
> {code:title=Java Version}
> ❯ java -version
> java version "17" 2021-09-14 LTS
> Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
> Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)