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 8229D200C17 for ; Fri, 10 Feb 2017 13:29:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7E177160B5C; Fri, 10 Feb 2017 12:29:46 +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 C8274160B5B for ; Fri, 10 Feb 2017 13:29:45 +0100 (CET) Received: (qmail 45938 invoked by uid 500); 10 Feb 2017 12:29:45 -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 45927 invoked by uid 99); 10 Feb 2017 12:29:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2017 12:29:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5977D1A7A75 for ; Fri, 10 Feb 2017 12:29:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fagy1XqfisLK for ; Fri, 10 Feb 2017 12:29:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B55785F1B3 for ; Fri, 10 Feb 2017 12:29:42 +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 ECC3FE0285 for ; Fri, 10 Feb 2017 12:29:41 +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 A2D2421D63 for ; Fri, 10 Feb 2017 12:29:41 +0000 (UTC) Date: Fri, 10 Feb 2017 12:29:41 +0000 (UTC) From: "Karl Pauls (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FELIX-5138) Felix should log underlying exception on failed bundle update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Feb 2017 12:29:46 -0000 [ https://issues.apache.org/jira/browse/FELIX-5138?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Pauls updated FELIX-5138: ------------------------------ Fix Version/s: framework-5.6.2 > Felix should log underlying exception on failed bundle update > ------------------------------------------------------------- > > Key: FELIX-5138 > URL: https://issues.apache.org/jira/browse/FELIX-5138 > Project: Felix > Issue Type: Improvement > Components: Framework > Affects Versions: framework-5.0.1 > Reporter: J=C3=B6rg Hoh > Assignee: Karl Pauls > Fix For: framework-5.6.2 > > > I run an application, which is based on Apache Sling. We recently updated= our bundles and I faced this message; as outcome my.custom.bundle wasn't u= pdated properly. > {noformat} > 11.12.2015 14:09:36.753 *INFO* [FelixStartLevel] my.custom.bundle BundleE= vent RESOLVED > 11.12.2015 14:09:36.753 *INFO* [FelixStartLevel] my.custom.bundle BundleE= vent STARTING > 11.12.2015 14:09:36.754 INFO [OsgiInstallerImpl] org.apache.sling.install= er.core.impl.tasks.BundleUpdateTask Removing failing update task - unable t= o retry: BundleUpdateTask: TaskResource(url=3Djcrinstall:/apps/myapp/instal= l/my.custom.bundle-1.5.6-SNAPSHOT.jar, entity=3Dbundle:my.custom.bundle, st= ate=3DINSTALL, attributes=3D[org.apache.sling.installer.api.tasks.ResourceT= ransformer=3D:28:84:15:, Bundle-SymbolicName=3Dmy.custom.bundle, Bundle-Ver= sion=3D1.5.6-SNAPSHOT], digest=3D1449838063263) > org.osgi.framework.BundleException: Bundle my.custom.bundle [252] cannot = be update, since it is either starting or stopping. > at org.apache.felix.framework.Felix.updateBundle(Felix.java:2311) > at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:995) > at org.apache.sling.installer.core.impl.tasks.BundleUpdateTask.execute(Bu= ndleUpdateTask.java:92) > at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(= OsgiInstallerImpl.java:847) > at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(Os= giInstallerImpl.java:689) > at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstall= erImpl.java:265) > at java.lang.Thread.run(Thread.java:767) > {noformat} > According to the code, Felix.updateBundle() prints this message only when= acquireBundleLock() throws an IllegalStateException; and this IllegalState= ment exception can have 2 different causes. > It would be good, if the log message contains an information, which of th= ese 2 reasons actually occurred. And it would be even better, if this actio= n is actually retried, as this problem looks like a temporary issue for me. -- This message was sent by Atlassian JIRA (v6.3.15#6346)