-
Notifications
You must be signed in to change notification settings - Fork 801
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
配置中有空数据导致微服务启动失败,是否可以捕获该异常 #3572
Comments
能提供下重现问题的步骤吗? |
框架的版本号也提供一下吧 |
2.6.0版本,暂时没有复现的方法 |
这个问题,非常偶现,遇到的时候,重启服务没法无法解决,只能整个环境卸载重装,怀疑跟容器注入的env有关系,根据错误日志发现,多数据源配置在duplicateCseConfigToServicecomb处理的时候,ConcurrentHashMap会对key以及value做非空判断,否则会拋空指针,目前我们的处理方法是将duplicateCseConfigToServicecomb处理逻辑try catch处理了 代码: |
能提供下错误堆栈吗? |
The microservice fails to be started due to empty data in the configuration. Can the exception be captured? |
fixed in 2.8.5 |
微服务创建ConfigurationSpringInitializer对象时,由于空指针导致对象创建失败,目前来看应该是配置项中有空指针,但是无法判断到底是什么配置项,能不能捕获该异常,并显示导致空指针的配置项
The text was updated successfully, but these errors were encountered: