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

Candidate permutation failed due to a conflict between imports when migrating from Fuse 7.7 to 7.8 BOM

    XMLWordPrintable

Details

    • False
    • False
    • % %
    • ?
    • Undefined
    • Fuse On Openshift

    Description

      Migrating an application, which uses karaf-assembly, it running into "Candidate permutation failed due to a conflict between imports" when migrating from the Fuse 7.7 to 7.8 BOM.

      Previously, the app migrated from Fuse 7.6 to 7.7 without any issues.

      The startup looks like it just hangs until you turn on debug logging and see:

      2021-01-15 19:15:02,391 | DEBUG | features-3-thread-1  | o.a.f.r.ResolverImpl             | 14 - org.apache.karaf.features.core - 4.2.9.fuse-780023-redhat-00001 | Candidate permutation failed due to a conflict between imports; will try another if possible. (Uses constraint violation. Unable to resolve resource com.cust.ec.camel.ec-camel-soa.osgi [com.cust.ec.camel.ec-camel-soa.osgi/4.0.7.SNAPSHOT] because it is exposed to package 'javax.xml.bind' from resources jakarta.xml.bind-api [jakarta.xml.bind-api/2.3.2.redhat-00001] and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via two dependency chains.
      
      Chain 1:
        com.cust.ec.camel.ec-camel-soa.osgi [com.cust.ec.camel.ec-camel-soa.osgi/4.0.7.SNAPSHOT]
          import: (&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))
           |
          export: osgi.wiring.package: javax.xml.bind
        jakarta.xml.bind-api [jakarta.xml.bind-api/2.3.2.redhat-00001]
      
      Chain 2:
        com.cust.ec.camel.ec-camel-soa.osgi [com.cust.ec.camel.ec-camel-soa.osgi/4.0.7.SNAPSHOT]
          import: (&(osgi.wiring.package=com.cust.protocol.rest._1)(version>=1.0.0)(!(version>=4.0.0)))
           |
          export: osgi.wiring.package=com.cust.protocol.rest._1; uses:=javax.xml.bind
        com.cust.ec.ec-api.osgi [com.cust.ec.ec-api.osgi/3.1.12.SNAPSHOT]
          import: (osgi.wiring.package=javax.xml.bind)
           |
          export: osgi.wiring.package: javax.xml.bind
        org.apache.felix.framework [org.apache.felix.framework [0](R 0)])
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              rhn-support-mrobson Matt Robson
              Salvatore Mongiardo Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: