Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-8106

Multiple work item handlers with reference to process service fail at boot with circular dependency exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.16.0.Final
    • 7.15.0.Final
    • SpringBoot
    • None
    • 1
    • NEW
    • NEW
    • 2019 Week 02-04, 2018 Week 51-01

    Description

      When there are multiple work item handlers with auto wired process service will cause failure at boot with circular dependency exception.

      ***************************
      APPLICATION FAILED TO START
      ***************************
      
      Description:
      
      The dependencies of some of the beans in the application context form a cycle:
      
         Custom (field private org.jbpm.services.api.ProcessService org.jbpm.springboot.samples.handlers.CustomWorkItemHandler.processService)
      ┌─────┐
      |  processService defined in class path resource [org/jbpm/springboot/autoconfigure/JBPMAutoConfiguration.class]
      ↑     ↓
      |  runtimeDataService defined in class path resource [org/jbpm/springboot/autoconfigure/JBPMAutoConfiguration.class]
      ↑     ↓
      |  deploymentService defined in class path resource [org/jbpm/springboot/autoconfigure/JBPMAutoConfiguration.class]
      ↑     ↓
      |  Log (field private org.jbpm.services.api.ProcessService org.jbpm.springboot.samples.handlers.LogWorkItemHandler.processService)
      └─────┘
      

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            swiderski.maciej Maciej Swiderski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: