[keycloak-user] Getting compile errors related to BouncyCastle.

Harold Roussel hroussel at alphinat.com
Wed May 15 14:50:23 EDT 2019


Hello,

I'm trying to compile the project with Maven on the command line.

I'm getting errors like the following,

[ERROR] 
/c:/data/projects/keycloak-master/common/src/main/java/org/keycloak/common/util/OCSPUtils.java:[230,41] 
no suitable constructor found for 
Extension(org.bouncycastle.asn1.DERObjectIdentifier,boolean,org.bouncycastle.asn1.DEROctetString)
     constructor 
org.bouncycastle.asn1.x509.Extension.Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier,org.bouncycastle.asn1.ASN1Boolean,org.bouncycastle.asn1.ASN1OctetString) 
is not applicable
       (argument mismatch; org.bouncycastle.asn1.DERObjectIdentifier 
cannot be converted to org.bouncycastle.asn1.ASN1ObjectIdentifier)
     constructor 
org.bouncycastle.asn1.x509.Extension.Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier,boolean,byte[]) 
is not applicable
       (argument mismatch; org.bouncycastle.asn1.DERObjectIdentifier 
cannot be converted to org.bouncycastle.asn1.ASN1ObjectIdentifier)
     constructor 
org.bouncycastle.asn1.x509.Extension.Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier,boolean,org.bouncycastle.asn1.ASN1OctetString) 
is not applicable
       (argument mismatch; org.bouncycastle.asn1.DERObjectIdentifier 
cannot be converted to org.bouncycastle.asn1.ASN1ObjectIdentifier)
[ERROR] 
/c:/data/projects/keycloak-master/common/src/main/java/org/keycloak/common/util/OCSPUtils.java:[320,72] 
cannot find symbol
   symbol:   method toASN1Primitive()
   location: class org.bouncycastle.cert.ocsp.RespID

My Maven version is 3.3.9.  Using JDK 1.8.0_172.  I have the latest 
source for Keycloak (downloaded this morning).

Any help would be appreciated.

Thanks.

Harold


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus


More information about the keycloak-user mailing list