Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11121

Spring Boot startup fails if Spin Dataformat-All artifact is used

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • spring-boot 3.4.0
    • None
    • spring-boot
    • None

      Steps to reproduce:

      • Create Spring Boot Application
      • Add camunda-spin-dataformat-all dependency
      • Add camunda-engine-plugin-spin dependency
      • Start Spring Boot applications

      Application fails startup with:

      ***************************
      APPLICATION FAILED TO START
      ***************************
      
      Description:
      
      An attempt was made to call a method that does not exist. The attempt was made from the following location:
      
          org.camunda.bpm.spring.boot.starter.spin.CamundaJacksonFormatConfiguratorJSR310.configure(CamundaJacksonFormatConfiguratorJSR310.java:34)
      
      The following method did not exist:
      
          org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat.getObjectMapper()Lcom/fasterxml/jackson/databind/ObjectMapper;
      
      The method's class, org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat, is available from the following locations:
      
          jar:file:/C:/Users/Lindhauer/.m2/repository/org/camunda/spin/camunda-spin-dataformat-all/1.7.4/camunda-spin-dataformat-all-1.7.4.jar!/org/camunda/spin/impl/json/jackson/format/JacksonJsonDataFormat.class
      
      It was loaded from the following location:
      
          file:/C:/Users/Lindhauer/.m2/repository/org/camunda/spin/camunda-spin-dataformat-all/1.7.4/camunda-spin-dataformat-all-1.7.4.jar
      
      
      Action:
      
      Correct the classpath of your application so that it contains a single, compatible version of org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat
       

      Reason: CamundaJacksonFormatConfiguratorJSR310 does not work if Jackson is relocated as it is with dataformat all.

      Expected behavior:

      • Option 1: Auto-configuration works also with spin-dataformat-all
      • Option 2: Auto-configuration is not supported for spin-dataformat-all and doesn't fail startup

      Workaround: Switch to dataformat-json and dataformat-xml dependencies

        This is the controller panel for Smart Panels app

              akif.hazarvi Akif
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: