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

Bruno Oliveira bruno at abstractj.org
Thu May 16 14:05:14 EDT 2019


Hi Harold, could you please describe your environment setup like: Maven
version, JDK version...and also what exactly you did to compile the
project?

On 2019-05-15, Harold Roussel wrote:
> 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
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user

-- 

abstractj


More information about the keycloak-user mailing list