Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 20415 invoked from network); 27 Dec 2010 14:15:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Dec 2010 14:15:43 -0000 Received: (qmail 26942 invoked by uid 500); 27 Dec 2010 14:15:42 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 26630 invoked by uid 500); 27 Dec 2010 14:15:39 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 26622 invoked by uid 99); 27 Dec 2010 14:15:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 14:15:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 74.125.83.41 as permitted sender) Received: from [74.125.83.41] (HELO mail-gw0-f41.google.com) (74.125.83.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 14:15:32 +0000 Received: by gwj22 with SMTP id 22so4535463gwj.0 for ; Mon, 27 Dec 2010 06:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ZXeALt5wOAAo2jkEmp9lZczOFnm6nAsqCm29wOolcSE=; b=F43yZ1pWhmR1HpEGpJG4+H0MRit7dfzIFUg0DnT0Ql/XoM7t8I9xkqrMgm+QqLe7sl mZatMcclar44uLbeRqIyPu7rQ2E6KHM6VJ9FK1FE0xoUhwY+Xu/pc/QMdhxSFATMplIm KplkdtucZ4td6gSULOKUqAofjDRISRs6TsydQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JgXUybKmEt8BtPzHHlJhsAqduuSu+d+UGq1zSiqA+NiMMEQ3dT4vwVEUBHXSrU0/qJ 2EvJTpTFzYrPQ+eBZ3T8Txt79CrX91XAWopO290rFjbV4+Wi9niPPk5LyXr59Gn9tQni r9wY6pvciF2agKuY1EZPB/aQ/7+83E+cXaJgQ= Received: by 10.151.100.2 with SMTP id c2mr16749038ybm.113.1293459311509; Mon, 27 Dec 2010 06:15:11 -0800 (PST) Received: from [192.168.0.158] ([123.116.33.44]) by mx.google.com with ESMTPS id e54sm6572950yhc.14.2010.12.27.06.15.07 (version=SSLv3 cipher=RC4-MD5); Mon, 27 Dec 2010 06:15:09 -0800 (PST) Message-ID: <4D189F68.7090106@gmail.com> Date: Mon, 27 Dec 2010 22:15:04 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: dkulp@apache.org CC: dev@cxf.apache.org Subject: Re: svn commit: r1053030 - /cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Dan, I had to admit that the issue is introduced by the new added test PolicyEngineImplInitTest. I think you already fix it just before I commit my fix :) Willem On 12/27/10 8:53 PM, dkulp@apache.org wrote: > > > I'm -1 to this as it fixes the wrong thing. We need to find the test that is leaving the bus and make sure the cleanup is done. > > Daniel Kulp > http://dankulp.com/blog > > > On Dec 27, 2010, at 4:37 AM, ningjiang@apache.org wrote: > >> Author: ningjiang >> Date: Mon Dec 27 09:37:49 2010 >> New Revision: 1053030 >> >> URL: http://svn.apache.org/viewvc?rev53030&view=rev >> Log: >> Fix the test failed of PolicyAnnotationTest with JDK1.5 >> >> Modified: >> cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java >> >> Modified: cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java >> URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java?rev53030&r153029&r253030&view=diff >> ============================================================================ >> --- cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java (original) >> +++ cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java Mon Dec 27 09:37:49 2010 >> @@ -53,6 +53,8 @@ public class PolicyAnnotationTest extend >> >> @org.junit.Test >> public void testAnnotations() throws Exception { >> + // Need to clean up the Default Bus instance frist >> + BusFactory.setDefaultBus(null); >> Bus bus =usFactory.getDefaultBus(); >> JaxWsServerFactoryBean factory =ew JaxWsServerFactoryBean(); >> factory.setBus(bus); >> >> > > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang