间歇性的 Bean 正在创建异常

huangapple 未分类评论44阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年7月25日 21:47:55
  • 转载请务必保留本文链接:https://java.coder-hub.com/63089130.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定