Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: assemblies
    • Labels:
      None

      Description

      The Apache Camel community plans to cut the release 2.13.1. We should incorporate the new version.

      The new Camel version has also the dependencies upgraded

      • ActiveMQ: 5.9.1
      • CXF: 2.7.11
      There are no Sub-Tasks for this issue.

        Activity

        Krzysztof Sobkowiak created issue -
        Krzysztof Sobkowiak made changes -
        Field Original Value New Value
        Summary Upgrade to Camel 2.13.0 Upgrade to Camel 2.13.1
        Krzysztof Sobkowiak made changes -
        Assignee Krzysztof Sobkowiak [ sobkowiak ]
        Krzysztof Sobkowiak made changes -
        Description The Apache Camel community plans to cut the release 2.13.1. We should incorporate the new version. The Apache Camel community plans to cut the release 2.13.1. We should incorporate the new version.

        The new Camel version has also the dependencies upgraded
        * ActiveMQ:
        Krzysztof Sobkowiak made changes -
        Description The Apache Camel community plans to cut the release 2.13.1. We should incorporate the new version.

        The new Camel version has also the dependencies upgraded
        * ActiveMQ:
        The Apache Camel community plans to cut the release 2.13.1. We should incorporate the new version.

        The new Camel version has also the dependencies upgraded
        * ActiveMQ: 5.9.1
        * CXF: 2.7.11
        Krzysztof Sobkowiak made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Krzysztof Sobkowiak made changes -
        Comment [ I have done a small experiment and found a workaround for this problem. I have created a {{joda}} feature containing the {{org.apache.servicemix.bundles.joda-time}} which provides the required package in version {{2.1}} and included it at the beginning of {{featuresBoot}}. While booting the package form this feature is wired into {{org.apache.servicemix.bundles.xstream}} and {{activiti}} feature can be installed with no problem because {{org.apache.servicemix.bundles.xstream}} imports already the correct package. ]
        Krzysztof Sobkowiak made changes -
        Comment [ The {{org.activiti.engine}} imports {{org.joda.time.format}} package It can be resolved from {{org.apache.servicemix.bundles.joda-time}} bundle or from {{joda-time}} (via other path -- {{org.apache.servicemix.bundles.drools}} and {{org.apache.servicemix.bundles.xstream}}.

        Because the {{org.apache.servicemix.bundles.xstream}} bundle imports optional {{org.joda.time.format}} in version {{[1.6.0, 3.0.0)}} and is installed with {{activemq}} feature in {{featuresBoot}} the package is resolved with version {{1.6.0}} from {{joda-time}} which is also part of the {{activemq}} feature.

        Next when installing the {{activiti}} feature, the {{org.activiti.engine}} requires the same package with higher version {{[2.1.0, 3.0.0)}}. With the refresh option we had probably no problem and {{org.apache.servicemix.bundles.xstream}} would be probably resolved again with the package from {{org.apache.servicemix.bundles.joda-time}} in higher version which is also allowed for {{org.apache.servicemix.bundles.xstream}}. But with refresh disabled it doesn't happen and the package can not be correctly wired into {{org.activiti.engine}}

        This problem didn't happen with ActiveMQ 5.9.0, because the {{activemq}} features includes {{org.apache.servicemix.bundles.xstream}} with version {{1.3_2}} which imports {{org.joda.time.format}} with range {{[0.9,1)}}. Because the import is optional and no bundle provides this package with this version, the package is not wired into {{org.apache.servicemix.bundles.xstream}} and {{org.activiti.engine}} imports the package from {{org.apache.servicemix.bundles.joda-time}}

        ActiveMQ 5.9.1 feature includes {{org.apache.servicemix.bundles.xstream}} with version {{1.4.7_1}} which imports {{org.joda.time.format}} with version provided by {{joda-time}} which is not compatible with import in {{org.activiti.engine}}

        ]
        Krzysztof Sobkowiak made changes -
        Comment [ I'm trying to perform the upgrade and getting following exception when trying to install the {{activiti}} feature with refresh disabled ({{-r}}). It is not possible to install with refresh due to SM-2287

        {code}
        Error executing command: Could not start bundle mvn:org.apache.servicemix.activiti/org.apache.servicemix.activiti.config/5.1.0-SNAPSHOT in feature(s) activiti-5.15.1: Uses constraint violation. Unable to resolve bundle revision org.activiti.engine [171.0] because it is exposed to package 'org.joda.time.format' from bundle revisions org.apache.servicemix.bundles.joda-time [167.0] and joda-time [101.0] via two dependency chains.

        Chain 1:
          org.activiti.engine [171.0]
            import: (&(osgi.wiring.package=org.joda.time.format)(version>=2.1.0)(!(version>=3.0.0)))
             |
            export: osgi.wiring.package=org.joda.time.format
          org.apache.servicemix.bundles.joda-time [167.0]

        Chain 2:
          org.activiti.engine [171.0]
            import: (&(osgi.wiring.package=org.drools.runtime)(version>=5.5.0)(!(version>=6.0.0)))
             |
            export: osgi.wiring.package=org.drools.runtime; uses:=com.thoughtworks.xstream.annotations
          org.apache.servicemix.bundles.drools [164.0]
            import: (osgi.wiring.package=com.thoughtworks.xstream.annotations)
             |
            export: osgi.wiring.package=com.thoughtworks.xstream.annotations; uses:=org.joda.time.format
          org.apache.servicemix.bundles.xstream [93.0]
            import: (&(osgi.wiring.package=org.joda.time.format)(version>=1.6.0)(!(version>=3.0.0)))
             |
            export: osgi.wiring.package=org.joda.time.format
          joda-time [101.0]

        {code}

        The same problem occurs in Activiti example itests.

        ]
        Krzysztof Sobkowiak made changes -
        Link This issue is blocked by SM-2303 [ SM-2303 ]
        Krzysztof Sobkowiak made changes -
        Link This issue is blocked by SM-2303 [ SM-2303 ]
        Show
        Krzysztof Sobkowiak added a comment - Fixed in servicemix-5.1.x – https://git-wip-us.apache.org/repos/asf/servicemix/?p=servicemix.git;a=commit;h=f6f10bf715621e056bdc691cfc705697b1907862
        Show
        Krzysztof Sobkowiak added a comment - Fixed in master – https://git-wip-us.apache.org/repos/asf/servicemix/?p=servicemix.git;a=commit;h=8ca299c51e72224fbad1fdf7d98d3743cbc58d8c
        Krzysztof Sobkowiak made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Krzysztof Sobkowiak made changes -
        Fix Version/s 6.0.0.M1 [ 12329337 ]
        Krzysztof Sobkowiak made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        13d 21h 11m 1 Krzysztof Sobkowiak 16/May/14 19:57
        In Progress In Progress Resolved Resolved
        7d 2h 31m 1 Krzysztof Sobkowiak 23/May/14 22:28
        Resolved Resolved Closed Closed
        311d 20h 9m 1 Krzysztof Sobkowiak 31/Mar/15 18:38

          People

          • Assignee:
            Krzysztof Sobkowiak
            Reporter:
            Krzysztof Sobkowiak
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development