Unable to complete the scan for annotations for web application [] due to a StackOverflowError

来源:互联网 发布:地理探测器软件 编辑:程序博客网 时间:2024/05/21 17:09

Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] 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]


红色部分为报错的根本原因:是jvm的栈溢出问题;而导致栈溢出的根本原因是由于蓝色部分显示的jar包冲突,这种情况是有两个jar都含有上述相同的类名,且继承关系刚好相反,故造成tomcat启动失败。

解决方案:

搜索出含有上面蓝色部分的类(即ASN1EncodableVector)的jar包,应该有两个jar含有此类,去掉其中一个jar即可。


eclipse通过类名,找到所在的jar包

选中class名, 快捷键 Ctrl + Shit + T!!然后……




阅读全文
0 0
原创粉丝点击