Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 21512 invoked from network); 9 Nov 2007 20:58:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 20:58:11 -0000 Received: (qmail 17922 invoked by uid 500); 9 Nov 2007 20:57:59 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 17909 invoked by uid 500); 9 Nov 2007 20:57:59 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 17900 invoked by uid 99); 9 Nov 2007 20:57:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 12:57:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 20:58:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DED46714233 for ; Fri, 9 Nov 2007 12:57:50 -0800 (PST) Message-ID: <3172196.1194641870910.JavaMail.jira@brutus> Date: Fri, 9 Nov 2007 12:57:50 -0800 (PST) From: "Daniel Kulp (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Assigned: (CXF-1192) Jsr250BeanPostProcessor, non reentrant ResourceInjector results in IllegalArgumentException In-Reply-To: <15953349.1194609590572.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/CXF-1192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp reassigned CXF-1192: -------------------------------- Assignee: Daniel Kulp > Jsr250BeanPostProcessor, non reentrant ResourceInjector results in IllegalArgumentException > ------------------------------------------------------------------------------------------- > > Key: CXF-1192 > URL: https://issues.apache.org/jira/browse/CXF-1192 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.0.3 > Reporter: Gary Tully > Assignee: Daniel Kulp > Priority: Minor > > The Jsr250BeanPostProcessor[1], uses a single instance of the non reentrant ResourceInjector. If the bean has two postConstruct methods and the first results in another bean creation which has a postConstruct method we have trouble. For a postConstruct method, the ResourceInjector sets a Target reference member variable and invokes the method. If the postConstrcut method results in another bean being created that has a postConstrcut annotation the single ResourceInjector gets it's target reference changed and the result is an IllegalArgumentException on calling a subsequent postConstruct method. > The simplest fix is to have the Jsr250BeanPostProcessor use a new ResourceInjector for every bean. > The scenario that showed this bug has been worked around so I don't have an easy test case but one can be fabricated around the spring tests in core by following the description and adding the Jsr250BeanPostProcessor to the configuration. > [1] http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java?view=markup -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.