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

Can't upgrade Fuse 7.2 on Karaf to 7.10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • fuse-7.x-GA
    • Karaf
    • None
    • False
    • False
    • % %
    • Todo

    Description

      Doing an in-place upgrade of Fuse 7.2 on Karaf to Fuse 7.10 fails, when following the documented procedure (patch:add, patch:update, patch:simulate, patch:install).

      patch:update fails like this:

      Current patch mechanism version: 7.2.0.fuse-720035-redhat-00001
      New patch mechanism version detected: 7.10.0.fuse-7_10_0-00011-redhat-00001
      Uninstalling patch features in version 7.2.0.fuse-720035-redhat-00001
      org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=shell; type=karaf.feature; version="[4.2.0.fuse-720061-redhat-00001,4.2.0.fuse-720061-redhat-00001]"; filter:="(&(osgi.identity=shell)(type=karaf.feature)(version>=4.2.0.fuse-720061-redhat-00001)(version<=4.2.0.fuse-720061-redhat-00001))" [caused by: Unable to resolve shell/4.2.0.fuse-720061-redhat-00001: missing requirement [shell/4.2.0.fuse-720061-redhat-00001] osgi.identity; osgi.identity=org.jline.terminal-jansi; type=osgi.fragment; version="[3.6.2.redhat-2,3.6.2.redhat-2]"; resolution:=mandatory [caused by: Fragment was not selected for attachment: org.jline.terminal-jansi/3.6.2.redhat-2]]
          at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
          at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)
          at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377)
          at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:331)
          at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:248)
          at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388)
          at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
          at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=shell; type=karaf.feature; version="[4.2.0.fuse-720061-redhat-00001,4.2.0.fuse-720061-redhat-00001]"; filter:="(&(osgi.identity=shell)(type=karaf.feature)(version>=4.2.0.fuse-720061-redhat-00001)(version<=4.2.0.fuse-720061-redhat-00001))" [caused by: Unable to resolve shell/4.2.0.fuse-720061-redhat-00001: missing requirement [shell/4.2.0.fuse-720061-redhat-00001] osgi.identity; osgi.identity=org.jline.terminal-jansi; type=osgi.fragment; version="[3.6.2.redhat-2,3.6.2.redhat-2]"; resolution:=mandatory [caused by: Fragment was not selected for attachment: org.jline.terminal-jansi/3.6.2.redhat-2]]  

       

      patch:simulate fails like this (but that's probably not a surprise):

       

       patch:simulate fuse-karaf-7.10.0
      
      org.jboss.fuse.patch.management.PatchException: Unsupported namespace: 
      http://karaf.apache.org/xmlns/features/v1.6.0 : 
      mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features
      
          at 
      org.jboss.fuse.patch.impl.PatchServiceImpl.featureUpdatesInPatch(PatchServiceImpl.java:1209)
      
          at 
      org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:534)
      
          at 
      org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:474)
      
          at 
      org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:469)
      
          at 
      org.jboss.fuse.patch.commands.SimulateCommand.doExecute(SimulateCommand.java:45)
      
          at 
      org.jboss.fuse.patch.commands.PatchCommandSupport.execute(PatchCommandSupport.java:39)
      
          at 
      org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
      
          at 
      org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
      
          at 
      org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
      
          at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571)
      
          at 
      org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
      
          at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
      
          at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
      
          at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
      
          at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
      
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      
          at 
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      
          at 
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      
          at java.lang.Thread.run(Thread.java:748)
      
      Caused by: java.lang.RuntimeException: Unsupported namespace: 
      http://karaf.apache.org/xmlns/features/v1.6.0 : 
      mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features
      
          at 
      org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:116)
      
          at 
      org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
      
          at 
      org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
      
          at 
      org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:372)
      
          at 
      org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:367)
      
          at 
      org.jboss.fuse.patch.impl.PatchServiceImpl.featureUpdatesInPatch(PatchServiceImpl.java:1006)
      
          ... 18 more
      
      Caused by: java.lang.IllegalArgumentException: Unsupported namespace: 
      http://karaf.apache.org/xmlns/features/v1.6.0
      
          at 
      org.apache.karaf.features.internal.model.JaxbUtil.getSchema(JaxbUtil.java:170)
      
          at 
      org.apache.karaf.features.internal.model.JaxbUtil.unmarshalValidate(JaxbUtil.java:122)
      
          at 
      org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(JaxbUtil.java:100)
      
          at 
      org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:114)
      
          ... 23 more
      
      Error executing command: Unsupported namespace: 
      http://karaf.apache.org/xmlns/features/v1.6.0 : 
      mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features
      

       

      I can upgrade 7.9 -> 7.10 this way, and I can upgrade 7.2 -> 7.10 by going through every intermediate version. I can't find any other way to get from 7.2 -> 7.10.

      If it is necessary to patch to each version incrementally, that's fine; but the documentation doesn't say that this is necessary.

       

       

       

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            rhn-support-kboone Kevin Boone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: