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

[management] circular bean injection #2238

Closed
NicolasGeraud opened this issue May 14, 2019 · 0 comments

Comments

@NicolasGeraud
Copy link
Member

commented May 14, 2019

from gitter :
We found some platform-related issue with api manager 1.25. It works fine neither locally on windows or on ubuntu virtual, but when we try deploy it to openshift, redhat 7.5, we got spring bean circular dependency error on startup. Looks like its related to this spring issue spring-projects/spring-framework#18879

With the following stacktrace :

2019-05-14 13:57:28.518 [graviteeio-node] WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientRegistrationServiceImpl': Unsatisfied dependency expressed through field 'auditService'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'auditServiceImpl': Bean with name 'auditServiceImpl' has been injected into other beans [roleServiceImpl,pageServiceImpl,apiKeyServiceImpl,subscriptionServiceImpl,planServiceImpl,parameterServiceImpl,metadataServiceImpl,apiMetadataServiceImpl,apiServiceImpl,apiHeaderServiceImpl,tagServiceImpl,membershipServiceImpl,groupServiceImpl,applicationServiceImpl,userServiceImpl] 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.

see spring-projects/spring-framework#18879

@NicolasGeraud NicolasGeraud added this to the APIM - 1.25.3 milestone May 14, 2019

@NicolasGeraud NicolasGeraud self-assigned this May 14, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue May 14, 2019

aelamrani added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue May 15, 2019

@aelamrani aelamrani closed this May 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.