Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6400

org.osgi.framework.BundleException: The origin update count has changed since the replacement copy was created.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.2.6
    • None
    • karaf
    • None

    Description

      During regular deployment of our application hosted within Karaf we perform clean start for each deployment and approximately 1 of 10..20 attempts fails because of error provided below.

      Consecutive retry typically runs OK. It looks like something is not synchronized correctly and error depends on some micro-timings.
      Happens with Karaf 4.2.6 + CentOS 7.

      We have additional features in

      featuresBoot = \
          ...
          scr/4.2.6, \
          webconsole/4.2.6, \
          jetty/4.2.6
      

      Exception:

      2019-09-02T03:00:11,474 | ERROR | activator-1-thread-2      | BootFeaturesInstaller            | 12 - org.apache.karaf.features.core - 4.2.6 | Error installing boot features
      org.osgi.framework.BundleException: The origin update count has changed since the replacement copy was created.
      	at org.eclipse.equinox.internal.region.StandardRegionDigraph.replace(StandardRegionDigraph.java:429) ~[?:?]
      	at org.eclipse.equinox.internal.region.StandardRegionDigraph.replace(StandardRegionDigraph.java:408) ~[?:?]
      	at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.replaceDigraph(BundleInstallSupportImpl.java:285) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.replaceDigraph(FeaturesServiceImpl.java:1173) ~[?:?]
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:839) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            xtracoder Xtra Coder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: