You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Yi Yan (JIRA)" <ji...@apache.org> on 2017/08/04 10:14:00 UTC

[jira] [Comment Edited] (KARAF-4367) "Module has been uninstalled" during installing the feature

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

Yi Yan edited comment on KARAF-4367 at 8/4/17 10:13 AM:
--------------------------------------------------------

Hi, 
I use JMX to install and uninstall two different features in Jconsole, I click one 'installFeature' button and quick click the 'uninstallFeature' button immediately, then I get the exception from the JConsole:Caused by: java.lang.IllegalStateException: Module has been uninstalled..
[^jconsole2.png]

I'm using 4.0.5

Regards,
Yi


was (Author: yanbasic):
Hi, 
I use JMX to uninstall two different features in two Jconsoles, I click one 'uninstallFeature' button and switch to another JConsole and click the other  'uninstallFeature' button immediately, then I got this exception from the JConsole:Caused by: java.lang.IllegalStateException: Module has been uninstalled..
[^jconsole.png]
I'm using 4.0.5

Regards,
Yi

> "Module has been uninstalled" during installing the feature
> -----------------------------------------------------------
>
>                 Key: KARAF-4367
>                 URL: https://issues.apache.org/jira/browse/KARAF-4367
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core, karaf-feature
>    Affects Versions: 4.0.4
>            Reporter: Pavlo Vasylchenko
>         Attachments: jconsole2.png
>
>
> Separately feature works fine, but if I try to install it just after uninstalling another feature, I get exception.
> Looks like karaf trying refresh something in this time.
> my code:
> featuresService.installFeature(feature, EnumSet.of(Option.NoAutoRefreshBundles));
> .......................................................................
> Caused by: java.lang.IllegalStateException: Module has been uninstalled.
> 	at org.eclipse.osgi.container.Module.checkValid(Module.java:526)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
> 	at org.eclipse.osgi.container.Module.getStartLevel(Module.java:243)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
> 	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:480)[9:org.apache.karaf.features.core:4.0.4]
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1089)[9:org.apache.karaf.features.core:4.0.4]
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:985)[9:org.apache.karaf.features.core:4.0.4]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)