Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21752

Getting error "The dependencies of some of the beans in the application context form a cycle"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.13-GA
    • fuse-7.12-GA
    • Spring Boot
    • None
    • False
    • None
    • False
    • User Experience
    • % %
    • Todo
    • Hide

      I have reproduced the issue on a custom project.
      The error message displayed is slightly different (it appears "template" instead of "activemq" bean, but it is the same code from the customer, but reduced to the most smallest possible

      Reproducer attached, just unzip and run

      $ mvn clean spring-boot:run

      Show
      I have reproduced the issue on a custom project. The error message displayed is slightly different (it appears "template" instead of "activemq" bean, but it is the same code from the customer, but reduced to the most smallest possible Reproducer attached, just unzip and run $ mvn clean spring-boot:run
    • Important
    • Very Likely

      When trying to start a Camel integration with Spring Boot  runtime, I obtain the following error after trying to start the integration

      ***************************
      APPLICATION FAILED TO START
      ***************************
      Description:
      The dependencies of some of the beans in the application context form a cycle:
      activemq defined in class path resource [META-INF/spring/camel-context.xml]
      ┌─────┐
      | camelContext
      ↑ ↓
      | shutdown defined in class path resource [META-INF/spring/camel-context.xml]
      └─────┘
      Action:
      Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
      

              ldemasi Luigi De Masi
              rhn-support-anarvaez Alfredo Narvaez
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: