narupley / not-going-to-be-commons-ssl

A Java 9, 10, 11+ compliant fork of Not-Yet-Commons-SSL
Apache License 2.0
15 stars 7 forks source link

java.lang.IllegalAccessError: class org.apache.commons.ssl.PKCS8Key tried to access method 'void org.bouncycastle.asn1.ASN1OutputStream.<init>(java.io.OutputStream)' #15

Open nicovn opened 1 year ago

nicovn commented 1 year ago

Issue that occurs since Mirth Connect ships with bcprov-jdk18on-171.jar

This constructor has been deprecated since a while (also in bcprov-jdk15on) and replaced with static method create

java.lang.IllegalAccessError: class org.apache.commons.ssl.PKCS8Key tried to access method 'void org.bouncycastle.asn1.ASN1OutputStream.(java.io.OutputStream)' (org.apache.commons.ssl.PKCS8Key and org.bouncycastle.asn1.ASN1OutputStream are in unnamed module of loader java.net.URLClassLoader @81d9a72) at org.apache.commons.ssl.PKCS8Key.encode(PKCS8Key.java:1000) at org.apache.commons.ssl.PKCS8Key.formatAsPKCS8(PKCS8Key.java:982) at org.apache.commons.ssl.PKCS8Key.(PKCS8Key.java:212)