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 10:00:00 UTC

[jira] [Comment Edited] (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=17070847#comment-17070847 ] 

Rico Neubauer edited comment on KARAF-6400 at 3/30/20, 9:59 AM:
----------------------------------------------------------------

Hi [~jbonofre] framework is Felix, yes.

These are our boot features - note that up to "bundle" the features are 'ours'.

featuresBoot = 1400B6, \
 1402B6, \
 1415B6, \
6027P7, \
 6028P7, \
 6030B6, \
 S-18000, \
 S7800B6, \
 S7803B6, \
 base, \
role-AdapterEngine, \
 bundle, \
 config, \
 deployer, \
 diagnostic, \
 feature, \
 framework, \
 instance, \
 jaas, \
 kar, \
 log, \
 management, \
 package, \
scheduler, \
 scr, \
 service, \
 shell, \
 ssh, \
 system, \
 wrap


was (Author: riconeubauer):
Hi [~jbonofre] framework is Felix, yes.

These are our boot features - note that up to "bundle" the features are 'ours'.

{{featuresBoot = 1400B6, \}}
{{ 1402B6, \}}
{{ 1415B6, \}}
{{S-18000, \}}
{{ S7800B6, \}}
{{ S7803B6, \}}
{{ base, \}}
{{role-AdapterEngine, \}}
{{}}{{bundle, \}}
{{ config, \}}
{{ deployer, \}}
{{ diagnostic, \}}
{{ feature, \}}
{{ framework, \}}
{{ instance, \}}
{{ jaas, \}}
{{ kar, \}}
{{ log, \}}
{{ management, \}}
{{ package, \}}
{{scheduler, \}}
{{ scr, \}}
{{ service, \}}
{{ shell, \}}
{{ ssh, \}}
{{ system, \}}
{{ wrap}}

> 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)