Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43E41200CE9 for ; Fri, 4 Aug 2017 12:14:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4252C16D622; Fri, 4 Aug 2017 10:14:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8536116D61E for ; Fri, 4 Aug 2017 12:14:05 +0200 (CEST) Received: (qmail 62064 invoked by uid 500); 4 Aug 2017 10:14:04 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 61877 invoked by uid 99); 4 Aug 2017 10:14:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 10:14:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BD61EC040C for ; Fri, 4 Aug 2017 10:14:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8o-mMudXZK0w for ; Fri, 4 Aug 2017 10:14:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0BF325FD49 for ; Fri, 4 Aug 2017 10:14:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 68EC9E0DFA for ; Fri, 4 Aug 2017 10:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A1B512465C for ; Fri, 4 Aug 2017 10:14:00 +0000 (UTC) Date: Fri, 4 Aug 2017 10:14:00 +0000 (UTC) From: "Yi Yan (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KARAF-4367) "Module has been uninstalled" during installing the feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Aug 2017 10:14:06 -0000 [ 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)