Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 74353 invoked from network); 15 Oct 2009 11:36:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Oct 2009 11:36:54 -0000 Received: (qmail 8383 invoked by uid 500); 15 Oct 2009 11:36:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 8308 invoked by uid 500); 15 Oct 2009 11:36:54 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 8298 invoked by uid 99); 15 Oct 2009 11:36:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 11:36:54 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 11:36:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F0A8234C48D for ; Thu, 15 Oct 2009 04:36:31 -0700 (PDT) Message-ID: <366502223.1255606591453.JavaMail.jira@brutus> Date: Thu, 15 Oct 2009 04:36:31 -0700 (PDT) From: "Guillaume Nodet (JIRA)" To: dev@felix.apache.org Subject: [jira] Issue Comment Edited: (FELIX-1386) Updating fileinstall bundle in watched directory causes IllegalsStateException In-Reply-To: <1048962678.1248071234975.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765990#action_12765990 ] Guillaume Nodet edited comment on FELIX-1386 at 10/15/09 4:36 AM: ------------------------------------------------------------------ URL: http://svn.apache.org/viewvc?rev=825454&view=rev Log: FELIX-1756: allow fileinstall to override (i.e. update) bundles that have not been deployed by fileinstall initially Also fixes FELIX-1386: updating fileinstall bundle in watched directory causes IllegalStateException Modified: felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java Fileinstall can now update itself without any problems. was (Author: gnt): Committing to https://svn.apache.org/repos/asf/felix/trunk ... M karaf/assembly/src/main/filtered-resources/etc/config.properties M karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java Committed r825451 > Updating fileinstall bundle in watched directory causes IllegalsStateException > ------------------------------------------------------------------------------ > > Key: FELIX-1386 > URL: https://issues.apache.org/jira/browse/FELIX-1386 > Project: Felix > Issue Type: Bug > Components: File Install > Affects Versions: fileinstall-1.2.0 > Environment: generic > Reporter: Sahoo > Assignee: Filippo Diotalevi > Fix For: fileinstall-2.0.2 > > Attachments: FELIX-1386.txt > > > In my environment, fileinstall is installed via autostart properties, but it is located in a directory watched by fileinstall. When I updated fileinstall bundle, I get the following exception: > Jul 20, 2009 11:52:04 AM > SEVERE: Exception in thread "{felix.fileinstall.poll=5000, felix.fileinstall.bundles.new.start=false, felix.fileinstall.dir=/space/ss141213/WS/gf/v3.trunk.new/publish/glassfishv3/glassfish/modules/, felix.fileinstall.debug=1}" > Jul 20, 2009 11:52:20 AM > SEVERE: java.lang.IllegalStateException: Invalid BundleContext. > Jul 20, 2009 11:52:20 AM > SEVERE: at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393) > Jul 20, 2009 11:52:20 AM > SEVERE: at org.apache.felix.framework.BundleContextImpl.getServiceReference(BundleContextImpl.java:257) > Jul 20, 2009 11:52:20 AM > SEVERE: at org.apache.felix.fileinstall.DirectoryWatcher.getLogService(DirectoryWatcher.java:449) > Jul 20, 2009 11:52:20 AM > SEVERE: at org.apache.felix.fileinstall.DirectoryWatcher.log(DirectoryWatcher.java:416) > Jul 20, 2009 11:52:20 AM > SEVERE: at org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:133) > Jul 20, 2009 11:52:04 AM -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.