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 9C93C200AC5 for ; Sun, 22 May 2016 01:41:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 90774160A26; Sat, 21 May 2016 23:41:17 +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 D84D9160A04 for ; Sun, 22 May 2016 01:41:16 +0200 (CEST) Received: (qmail 66811 invoked by uid 500); 21 May 2016 23:41:16 -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 66794 invoked by uid 99); 21 May 2016 23:41:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 May 2016 23:41:15 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2F0D92C033A for ; Sat, 21 May 2016 23:41:14 +0000 (UTC) Date: Sat, 21 May 2016 23:41:12 +0000 (UTC) From: "Simon Chemouil (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4178) Provide method to access Exception thrown by activate method and/or while instantiation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 21 May 2016 23:41:17 -0000 [ https://issues.apache.org/jira/browse/FELIX-4178?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1529= 5308#comment-15295308 ]=20 Simon Chemouil commented on FELIX-4178: --------------------------------------- I would find this feature useful as well. I also don't think Christoph is c= hanging his story. It makes sense for Apache Felix SCR to expose an API to have a status/diagn= ostic UI, and to discover why components failed (and get the thrown excepti= on). This shouldn't be much of a memory issue if only the last exception is= kept (in case of bundle or prototype components), and I'm sure there are s= marter ways to design this. While exceptions are already logged through the log service, it is not prac= tical/future-proof to parse log messages to find those that correspond to e= xceptions thrown during the activate method. > Provide method to access Exception thrown by activate method and/or while= instantiation > -------------------------------------------------------------------------= -------------- > > Key: FELIX-4178 > URL: https://issues.apache.org/jira/browse/FELIX-4178 > Project: Felix > Issue Type: Improvement > Components: Declarative Services (SCR) > Reporter: Christoph L=C3=A4ubrich > Assignee: David Jencks > > Access to the exception a component throws in the activate method or any = exception while try to create instance (e.g. no default constructer, class = not found...) would help for diagnostic tools depending on the ScrService. -- This message was sent by Atlassian JIRA (v6.3.4#6332)