KB Article #177942

Admin service unable to start due to org.bouncycastle.asn1.ASN1EncodableVector error

Problem

Admin service not able to start. The following error is noted in the catalina.out log file:


Caused by: org.apache.catalina.LifecycleException: Failed to startcomponent
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/help]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
... 6 more
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/help] due to a StackOverflowError. 
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed 
was [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]


Resolution

The issue is caused by a leftover bcprov* JAR file in the $FILEDRIVEHOME/lib/jar/external folder.


To resolve the issue, stop the admin service, move the leftover file away from the mentioned folder and start the admin service.