You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Rico Neubauer (Jira)" <ji...@apache.org> on 2020/03/30 09:43:00 UTC

[jira] [Commented] (KARAF-6400) org.osgi.framework.BundleException: The origin update count has changed since the replacement copy was created.

    [ https://issues.apache.org/jira/browse/KARAF-6400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070838#comment-17070838 ] 

Rico Neubauer commented on KARAF-6400:
--------------------------------------

Encountered the same issue in one startup with Karaf 4.2.8.

We have a lot in featuresBoot, however not using jetty but http.

> org.osgi.framework.BundleException: The origin update count has changed since the replacement copy was created.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-6400
>                 URL: https://issues.apache.org/jira/browse/KARAF-6400
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.6
>            Reporter: Xtra Coder
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>
> 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 
> {code:java}
> featuresBoot = \
>     ...
>     scr/4.2.6, \
>     webconsole/4.2.6, \
>     jetty/4.2.6
> {code}
> Exception:
> {code:java}
> 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) [?:?]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)