I have a big project written in Grails 2.3.8. Sometimes, when I deploy it using my CI, I get this message:
Annotation verification for the web application [/ ProjectName ## 1152] failed due to StackOverflowError.
Possible root causes include setting too low for -Xss and illegal circular inheritance dependencies. The processed class hierarchy was [org.bouncycastle.asn1.ASN1EncodableVector-> org.bouncycastle.asn1.DEREncodableVector-> org.bouncycastle.asn1.ASN1EncodableVector]
I have already increased the Xss settings, but itβs clear, but maybe I'm mistaken that there is a circular reference: org.bouncycastle.asn1.ASN1EncodableVector-> org.bouncycastle.asn1.DEREncodableVector-> org.bouncycastle.asn1.ASN1EncodableVector
I am red that you can just avoid checking, I cannot delete the library because I need it. But I do not know how to do this in Grail. I can exclude them, but thatβs not what I want.
Thanks so much for any advice.
NIBE
UPDATE I just solved the problem. I delete all traces of the bouncycastle library in the buildConfig file. No trace in dependecy or exclude. Just add the crypto.2.0 plugin and everything will be fine!
source share