Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 22627 invoked from network); 5 Mar 2009 17:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 17:12:28 -0000 Received: (qmail 26230 invoked by uid 500); 5 Mar 2009 17:12:26 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 26188 invoked by uid 500); 5 Mar 2009 17:12:26 -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 26177 invoked by uid 99); 5 Mar 2009 17:12:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 09:12:26 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 05 Mar 2009 17:12:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E680D234C498 for ; Thu, 5 Mar 2009 09:11:56 -0800 (PST) Message-ID: <1148656517.1236273116943.JavaMail.jira@brutus> Date: Thu, 5 Mar 2009 09:11:56 -0800 (PST) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-966) iPOJO: Better error reporting when getPojoObject return null In-Reply-To: <735754362.1236028976468.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier resolved FELIX-966. ------------------------------------- Resolution: Fixed Fix Version/s: iPOJO-1.4.0 Fixed at revision 750499. When the creation of a pojo object failed, a runtime exception is thrown. > iPOJO: Better error reporting when getPojoObject return null > ------------------------------------------------------------ > > Key: FELIX-966 > URL: https://issues.apache.org/jira/browse/FELIX-966 > Project: Felix > Issue Type: Improvement > Components: iPOJO > Affects Versions: iPOJO-1.2.0 > Reporter: James Kingsbery > Assignee: Clement Escoffier > Fix For: iPOJO-1.4.0 > > > When InstanceManager's getPojoObject returns null (which happens when createObject returns null), it is really hard to understand why this is the case, since the Exception/Error is hidden from the upper layers behind the null return. I think it would be better if it returned an unchecked exception containing as the cause the underlying Exception/Error - getting null back is not a useful value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.