Skip to content

Spring 6.1.3 to 6.2.2 initialization circularity? #34308

@mebigfatguy

Description

@mebigfatguy

Unable to find Spring bean for class com.acme.pgbu.services.workflow.event.WorkflowAlertExecutorActor in application Anvil
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workflowAlertExecutorActor': Unsatisfied dependency expressed through field 'm_alertStartWorkflowService': Error creating bean with name 'alertStartWorkflowService': Requested bean is currently in creation: Is there an unresolvable circular reference or an asynchronous initialization dependency?

I see other reports of this, but they are pretty useless at least generally, so rather than trying to solve my problem, can i get some general ideas?

  • Is the circularity always between the two classes mentioned in the exception?
  • Is there a way to get some -debug printout of the spring dependency tree that caused the exception?
  • If the child is autowired into the parent as a field, does this imply that the child was created by one of the parents of the first? And so rearranging the grandparents fields may resolve this?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issuestatus: feedback-reminderWe've sent a reminder that we need additional information before we can continuestatus: waiting-for-feedbackWe need additional information before we can continue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions