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

Jean-Baptiste Onofré commented on KARAF-6404:
---------------------------------------------

It seems a refresh occurs (that's why the bundle context is invalid). Did you 
try with Karaf 4.2.6 (where we changed pax-logging to avoid lot of refresh) ?

> kar's occsionally not installing
> --------------------------------
>
>                 Key: KARAF-6404
>                 URL: https://issues.apache.org/jira/browse/KARAF-6404
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Kieron
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> Around half of the time some of the Kar files do not install correctly.
>  
> The stack trace is as follows
> {color:#4c9aff}2019-09-03T21:36:52,785 | WARN | df-2.13.5/deploy | 
> KarServiceImpl | araf.kar.internal.KarServiceImpl 296 | 52 - 
> org.apache.karaf.kar.core - 4.2.1 | Unable to install Kar feature 
> XXXX-cascade-delete/1.10.0.SNAPSHOT{color}
> {color:#4c9aff}java.lang.IllegalStateException: BundleContext is no longer 
> valid{color}
> {color:#4c9aff} at 
> org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:989)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:143)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:117)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:97)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installBundle(BundleInstallSupportImpl.java:135)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.installBundle(FeaturesServiceImpl.java:1101)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:871) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
>  ~[?:?]{color}
> {color:#4c9aff} at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  ~[?:?]{color}
> {color:#4c9aff} at java.lang.Thread.run(Thread.java:748) ~[?:?]{color}
>  
> The behaviour is very variable. Sometimes 3 kar's do not install, sometimes 
> 2, 1 or all fine.
>  
> The closest error before the above is as follows (if this is relevant in any 
> way):
> {color:#4c9aff}2019-09-03T21:36:42,810 | ERROR | Thread-208 | ShellUtil | 
> he.karaf.shell.support.ShellUtil 152 | 59 - org.apache.karaf.shell.core - 
> 4.2.1 | Exception caught while executing command{color}
> {color:#4c9aff}org.osgi.service.blueprint.container.ServiceUnavailableException:
>  The Blueprint container is being or has been destroyed: 
> (objectClass=org.apache.karaf.bundle.core.BundleService){color}
> {color:#4c9aff} at 
> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:276)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:57)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:341)
>  ~[?:?]{color}
> {color:#4c9aff} at Proxye7639180_b72c_4e03_bd40_5a752bebf205.getInfo(Unknown 
> Source) ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.SynchronizedInstallerImpl.getUnavailableBundles(SynchronizedInstallerImpl.java:475)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.SynchronizedInstallerImpl.waitForBundles(SynchronizedInstallerImpl.java:409)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.SynchronizedInstallerImpl.waitForBootFinish(SynchronizedInstallerImpl.java:114)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.SynchronizedInstallerImpl.waitForBootFinish(SynchronizedInstallerImpl.java:96)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.WaitForReadyCommand.lambda$execute$0(WaitForReadyCommand.java:68)
>  ~[?:?]{color}
> {color:#4c9aff} at java.security.AccessController.doPrivileged(Native Method) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> org.codice.ddf.sync.installer.impl.WaitForReadyCommand.execute(WaitForReadyCommand.java:61)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?]{color}
> {color:#4c9aff} at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) 
> ~[?:?]{color}
> {color:#4c9aff} at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> ~[?:?]{color}
> {color:#4c9aff} at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> ~[?:?]{color}
> {color:#4c9aff} at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> ~[?:?]{color}
> {color:#4c9aff} at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  ~[?:?]{color}
> {color:#4c9aff} at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  ~[?:?]{color}
> {color:#4c9aff} at java.lang.Thread.run(Thread.java:748) [?:?]
> {color}
> {color:#4c9aff}{color:#172b4d}Is this a known issue? If so has it been fixed 
> in later versions of Karaf?{color}
> {color}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to