KB-1810 When adding SAML Identity Provider, PEM file upload fails because org.bouncycastle class overrides final method


While configuring SAML from the Admin Console, the user sees the following error when attempting to upload the PEM file: 

Following corresponding errors are printed in the application server log:

ERROR com.appiancorp.rest.shared.AppianExceptionMapper - Internal Server Error on REST API invocation.
com.appiancorp.exceptions.LocalizedAppianRuntimeException$LocalizedAppianException: Expression evaluation error at function a!adminRouter: An error occurred while executing a save: java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z (APNX-1-4198-019)

For JBoss, server.log is located in the <JBOSS_HOME>/standalone/log directory. For Tomcat, tomcat-stdOut.log file is located in the <APPIAN_HOME>/log directory.  


This issue presents itself when there are custom versions of the Bouncy Castle classes in the environment which conflict with Appian.


Ensure that there are no custom classes or JARs deployed in the environment.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: November 2018