英文:
Intermittent Bean Currently in Creation Exception
问题
我们有一个通过Docker交付的应用程序,使用Tomcat 8.5 Alpine镜像。99%的情况下,它能正常加载,但很少情况下,我们会遇到以下错误:
Error creating bean with name 'SettingsHome': Bean with name 'SettingsHome' \
has been injected into other beans [SettingsService] in its raw version as \
part of a circular reference, but has eventually been wrapped. This means that \
said other beans do not use the final version of the bean. This is often the \
result of over-eager type matching - consider using 'getBeanNamesOfType' with \
the 'allowEagerInit' flag turned off, for example.
当发生这种情况时,我们尝试过重新启动主机、执行Docker镜像清理和重新拉取、清除任何卷并重新构建,但从未有效。通常我们最终不得不重新安装操作系统。是否有人对此有任何想法?
英文:
We have an application that we deliver via docker in a tomcat 8.5 alpine image. 99% of the time it loads fine, but very rarely we instead get the following error
Error creating bean with name 'SettingsHome': Bean with name 'SettingsHome' \
has been injected into other beans [SettingsService] in its raw version as \
part of a circular reference, but has eventually been wrapped. This means that \
said other beans do not use the final version of the bean. This is often the \
result of over-eager type matching - consider using 'getBeanNamesOfType' with \
the 'allowEagerInit' flag turned off, for example.
When this happens we have tried rebooting the host, performing a docker image prune and re-pulling, nuking any volumes and rebuilding but nothing ever works. We usually end up having to re-install the OS. Does anyone have any thoughts on this?
专注分享java语言的经验与见解,让所有开发者获益!
评论