Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD36610954 for ; Fri, 25 Jul 2014 18:56:54 +0000 (UTC) Received: (qmail 3450 invoked by uid 500); 25 Jul 2014 18:56:54 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 3416 invoked by uid 500); 25 Jul 2014 18:56:54 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 3405 invoked by uid 99); 25 Jul 2014 18:56:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 18:56:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 25 Jul 2014 18:56:53 +0000 Received: (qmail 2723 invoked by uid 99); 25 Jul 2014 18:56:33 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 18:56:33 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CDA0E9B5683; Fri, 25 Jul 2014 18:56:32 +0000 (UTC) From: ahgittin To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: OSGi class loading fixes Content-Type: text/plain Message-Id: <20140725185632.CDA0E9B5683@tyr.zones.apache.org> Date: Fri, 25 Jul 2014 18:56:32 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/90#discussion_r15418319 --- Diff: core/src/main/java/brooklyn/management/ha/OsgiManager.java --- @@ -120,6 +131,11 @@ public void registerBundle(String bundleUrl) { } catch (Exception e) { Exceptions.propagateIfFatal(e); bundleProblems.put(bundleUrlOrNameVersionString, e); + + Throwable cause = e.getCause(); + if (cause != null && cause.getMessage().contains("Unresolved constraint in bundle")) { + log.warn("Unresolved constraint.", e); --- End diff -- stack trace probably not helpful, so I would say log.warn("Unresolved constraint resolving OSGi bundle "+bundleUrlOrNameVersionString+" to load "+type+": "+e); if (log.isDebugEnabled()) log.debug("Trace for OSGi resolution failure", e); --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---