Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7208

Upgrading to magnolia 5.6 derives old joda-time version which conflicts with jackson-datatype

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • 5.6
    • None
    • None

    Description

      With magnolia 5.6 the joda-time 1.6.2 is derived via jbpm flow

      [INFO] | +- info.magnolia.workflow:magnolia-module-workflow-jbpm:jar:5.7:compile
      [INFO] | | +- info.magnolia.workflow:drools-jcr-persistence:jar:5.7:compile
      [INFO] | | +- info.magnolia.workflow:jbpm-jcr-persistence:jar:5.7:compile
      [INFO] | | | - org.jbpm:jbpm-flow:jar:6.4.0.Final:compile
      [INFO] | | | - joda-time:joda-time:jar:1.6.2:compile

      This breaks with jackson which derives joda-time in version 2.7

      [INFO] +- info.magnolia.rest:magnolia-rest-tools:jar:2.0:compile
      [INFO] | +- io.swagger:swagger-jaxrs:jar:1.5.6:compile
      [INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.8.6:compile
      [INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.8.6:compile
      [INFO] | | | +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
      [INFO] | | | - com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
      [INFO] | | - io.swagger:swagger-core:jar:1.5.6:compile
      [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.8.6:compile
      [INFO] | | | - joda-time:joda-time:jar:2.7:compile
      [INFO] | | - javax.validation:validation-api:jar:1.1.0.Final:compile

      Resulting in exception when creating Jackson Object Mapper =>
      Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.datatype.joda.cfg.FormatConfig

      For comparision the dependency tree of workflow-module before the upgrade on mgnl 5.5.6 looks the following

      [INFO] | +- info.magnolia.workflow:magnolia-module-workflow-jbpm:jar:5.6.5:compile
      [INFO] | | +- org.jbpm:jbpm-runtime-manager:jar:6.4.0.Final:compile
      [INFO] | | | +- org.eclipse.aether:aether-api:jar:1.0.0.v20140518:compile
      [INFO] | | | +- org.drools:drools-compiler:jar:6.4.0.Final:compile
      [INFO] | | | | +- org.antlr:antlr-runtime:jar:3.5:compile
      [INFO] | | | | +- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:compile
      [INFO] | | | | +- com.thoughtworks.xstream:xstream:jar:1.4.7:compile
      [INFO] | | | | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
      [INFO] | | | | | - xpp3:xpp3_min:jar:1.1.4c:compile
      [INFO] | | | | - com.google.protobuf:protobuf-java:jar:2.6.0:compile
      [INFO] | | | +- org.drools:drools-core:jar:6.4.0.Final:compile
      [INFO] | | | +- org.drools:drools-persistence-jpa:jar:6.4.0.Final:compile
      [INFO] | | | | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
      [INFO] | | | | +- dom4j:dom4j:jar:1.6.1:compile
      [INFO] | | | | - org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final:compile
      [INFO] | | | +- org.jbpm:jbpm-flow:jar:6.4.0.Final:compile
      [INFO] | | | +- org.jbpm:jbpm-persistence-jpa:jar:6.4.0.Final:compile
      [INFO] | | | +- org.kie:kie-api:jar:6.4.0.Final:compile
      [INFO] | | | +- org.kie:kie-internal:jar:6.4.0.Final:compile
      [INFO] | | | +- org.mvel:mvel2:jar:2.2.8.Final:compile
      [INFO] | | | +- org.jbpm:jbpm-human-task-workitems:jar:6.4.0.Final:compile

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              tpeintner Thomas Peintner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD