Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassLoaderUtil 异常捕获的问题 #4086

Closed
swabber-kun opened this issue Nov 10, 2021 · 1 comment · Fixed by #4097
Closed

ClassLoaderUtil 异常捕获的问题 #4086

swabber-kun opened this issue Nov 10, 2021 · 1 comment · Fixed by #4097
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@swabber-kun
Copy link

描述bug

image

我们系统在接入CAT的时候,出现了NoClassDefFoundError的报错,ClassLoaderUtil的try-catch没有明确捕获到,导致服务启动失败

image

@nobodyiam
Copy link
Member

It looks like the com.dianping.cat.Cat class is present while the ComponentLookupException class it imports doesn't exist.
I think the ClassLoaderUtil needs to fix this by also catching LinkageError and ExceptionInInitializerError.
To make your case work, you need to fix the ComponentLookupException not found issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
2 participants