Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0D1A9465 for ; Tue, 8 Nov 2011 19:28:31 +0000 (UTC) Received: (qmail 73169 invoked by uid 500); 8 Nov 2011 19:28:30 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 73130 invoked by uid 500); 8 Nov 2011 19:28:30 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 73122 invoked by uid 99); 8 Nov 2011 19:28:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 19:28:30 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of evangelinamrm@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 19:28:25 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RNrL3-0006Qz-85 for users@cxf.apache.org; Tue, 08 Nov 2011 11:28:05 -0800 Date: Tue, 8 Nov 2011 11:28:05 -0800 (PST) From: Evangelina To: users@cxf.apache.org Message-ID: <1320780485243-4975395.post@n5.nabble.com> Subject: Problem migrating from 2.3.1 to 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm having a few issues trying to migrate CXF from 2.3.1 version to 2.5.0. The main issue is with the Client that I'm creating using the ClientProxyFactoryBean. I'm creating my client like this: ClientProxy.getClient(cpf.create()) where cpf is the instance of ClientProxyFactoryBean, and then in my application I use the client that I get from that invocation. After migrating to 2.5.0 I'm running into NullPointerException because the client is being destroyed when the method finalize is called on the ClientProxy instance. I haven't had this issue before, because in 2.3.1 the method finalize is not implemented in the ClientProxy class. Is this a bug or working as expected? And if so, is there any way the client can outlive the clientProxy? since that instance is created inside the getClient static method, I cannot get hold of it. Thanks in advance for the help, Eva -- View this message in context: http://cxf.547215.n5.nabble.com/Problem-migrating-from-2-3-1-to-2-5-0-tp4975395p4975395.html Sent from the cxf-user mailing list archive at Nabble.com.