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

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

This is due to a refresh. Installing the{{framework-security}} feature installs 
bundles that cause a refresh on core bundles (like {{org.ops4j.pax.url.mvn}}, 
{{jline}}, {{jansi}}, {{org.apache.karaf.system.core}} and related 
{{org.apache.karaf.shell}}).

I would recommend to define {{framework-security}} feature as a boot feature to 
avoid this refresh.

> Install feature framework-security failed
> -----------------------------------------
>
>                 Key: KARAF-5769
>                 URL: https://issues.apache.org/jira/browse/KARAF-5769
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.4, 4.2.0, 4.1.5
>            Reporter: Johnson Hsu
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 4.1.4 / 4.1.5 will logout while install, did not installed. 
> {code:java}
> karaf@root()> feature:install framework-security{code}
>  
> 4.2.0 will show stacktrace on console and logout, did not installed.
> {code:java}
> karaf@root()> feature:install framework-security 
> java.lang.IllegalStateException: Invalid BundleContext.
> at 
> org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
> at 
> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
> at 
> org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:117)
> at 
> org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:97)
> at 
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installBundle(BundleInstallSupportImpl.java:135)
> at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.installBundle(FeaturesServiceImpl.java:1101)
> at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:870)
> 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:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745){code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to