Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0526174FF for ; Tue, 20 Oct 2015 20:12:39 +0000 (UTC) Received: (qmail 82223 invoked by uid 500); 20 Oct 2015 20:12:39 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 82169 invoked by uid 500); 20 Oct 2015 20:12:39 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 82154 invoked by uid 99); 20 Oct 2015 20:12:39 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2015 20:12:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4EFDC1A2DB6 for ; Tue, 20 Oct 2015 20:12:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jfyD_FA4MpUf for ; Tue, 20 Oct 2015 20:12:27 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id F2D4C20B89 for ; Tue, 20 Oct 2015 20:12:26 +0000 (UTC) Received: by lbbwb3 with SMTP id wb3so23803532lbb.1 for ; Tue, 20 Oct 2015 13:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Z2LlAAS5tvALUtGDG51CRgeb5Rkxsf3u06H7swODgJ0=; b=ZR3RdJdTsL3b+x9/qFC+VCUg6yL0Rvpus95QHmwVsWmR5eYCHa3j2j9r8xtgrt9u9F jjeD9nRBf7QnAKpkRqKs1Tkl8zgVPlU6XCcdwJdCWL41iR8PNjBLlW9NkzZNX0qwmEAb /JRcijeLv7YfhyF8n9xy5I2o5H0uCuAMS48j8LxgYbfKSRrFpKex/fS+8QGwgdfhjhdF CJuqbAAlr+M7dJg0YwWtCvi8kjBjSCeP4Jb4Lv7g+yCPGn5Hy5G5WbMB2Ew4M1dCoNKF RHol5KDxqOWmePOrm74TNPZ+2qn2QIymGSresAcVe/itjGYlP3guw6ukCKMs1Ch+HUHV ZH8w== MIME-Version: 1.0 X-Received: by 10.112.173.198 with SMTP id bm6mr2987901lbc.43.1445371946206; Tue, 20 Oct 2015 13:12:26 -0700 (PDT) Received: by 10.112.200.169 with HTTP; Tue, 20 Oct 2015 13:12:26 -0700 (PDT) In-Reply-To: <3D19A9D6-E1FF-4932-A344-DCAFBBB5BC53@dslextreme.com> References: <3D19A9D6-E1FF-4932-A344-DCAFBBB5BC53@dslextreme.com> Date: Tue, 20 Oct 2015 13:12:26 -0700 Message-ID: Subject: Re: WatchManagerTest failure From: Gary Gregory To: Log4J Developers List Content-Type: multipart/alternative; boundary=001a11c269b06c0bed05228ee17d --001a11c269b06c0bed05228ee17d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I most likely some file locking problem... :-( Gary On Tue, Oct 20, 2015 at 1:02 PM, Ralph Goers wrote: > It would be really good to know why this is a problem on windows. > > Ralph > > On Oct 20, 2015, at 11:40 AM, Gary Gregory wrote= : > > The commit comment says this is only a problem on Windows. How about not > running the test on Windows then, like > https://garygregory.wordpress.com/2015/09/18/the-art-of-test-driven-devel= opment-running-unit-tests-conditionally/ > > ? > > Gary > > On Mon, Oct 19, 2015 at 10:34 AM, Remko Popma > wrote: > >> I've added @Ignore to this test now. >> >> On Tue, Oct 20, 2015 at 1:44 AM, Remko Popma >> wrote: >> >>> I have the same problem... >>> >>> testWatchManager(org.apache.logging.log4j.core.util.WatchManagerTest) >>> Time elapsed: 1.073 sec <<< ERROR! >>> java.nio.file.FileSystemException: >>> C:\Users\remko\git\logging-log4j2\log4j-core\target\testWatchFile: The >>> process cannot access the file because it is being used by another proc= ess. >>> >>> at >>> sun.nio.fs.WindowsException.translateToIOException(WindowsException.jav= a:86) >>> at >>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:= 97) >>> at >>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:= 102) >>> at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165) >>> at >>> sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.jav= a:278) >>> at java.nio.file.Files.copy(Files.java:1274) >>> at >>> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(Wa= tchManagerTest.java:63) >>> >>> >>> On Mon, Oct 19, 2015 at 9:37 PM, Gary Gregory >>> wrote: >>> >>>> I get this from time to time. Not sure why yet... >>>> >>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.078 >>>> sec <<< FAILURE! - in org.apache.logging.log4j.core.util.WatchManagerT= est >>>> testWatchManager(org.apache.logging.log4j.core.util.WatchManagerTest) >>>> Time elapsed: 1.078 sec <<< ERROR! >>>> java.nio.file.FileSystemException: >>>> E:\vcs\git\apache\logging\logging-log4j2\log4j-core\target\testWatchFi= le: >>>> The process cannot access the file because it is being used by another >>>> process. >>>> >>>> at >>>> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(W= atchManagerTest.java:63) >>>> >>>> Running org.apache.logging.log4j.MarkerMixInTest >>>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 >>>> sec - in org.apache.logging.log4j.MarkerMixInTest >>>> >>>> Results : >>>> >>>> Tests in error: >>>> WatchManagerTest.testWatchManager:63 =E2=95=97 FileSystem >>>> E:\vcs\git\apache\logging\lo... >>>> >>>> Tests run: 933, Failures: 0, Errors: 1, Skipped: 30 >>>> >>>> >>>> -- >>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>>> Java Persistence with Hibernate, Second Edition >>>> >>>> JUnit in Action, Second Edition >>>> Spring Batch in Action >>>> Blog: http://garygregory.wordpress.com >>>> Home: http://garygregory.com/ >>>> Tweet! http://twitter.com/GaryGregory >>>> >>> >>> >> > > > -- > E-Mail: garydgregory@gmail.com | ggregory@apache.org > Java Persistence with Hibernate, Second Edition > > JUnit in Action, Second Edition > Spring Batch in Action > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > > > --=20 E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --001a11c269b06c0bed05228ee17d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I most likely some file locking problem... :-(
Gary

On Tue, = Oct 20, 2015 at 1:02 PM, Ralph Goers <ralph.goers@dslextreme.com<= /a>> wrote:
It would be really good to know why this is a problem= on windows.

<= /div>
Ralph


The commit comment says th= is is only a problem on Windows. How about not running the test on Windows = then, like=C2=A0https://garygregory.wordpress.com/2015/09/18/the-art-of-test-dr= iven-development-running-unit-tests-conditionally/

?=

Gary

On Mon, Oct 19, 2015 at 10:34 AM, Remko Popma <remko.popma@gmail.com> wrote:
I've added @Ignore to this test now.

On Tue, Oct 20= , 2015 at 1:44 AM, Remko Popma <remko.popma@gmail.com> w= rote:
I have the same pr= oblem...

testWatchManager(org.apache.logging.log4j.= core.util.WatchManagerTest) =C2=A0Time elapsed: 1.073 sec =C2=A0<<<= ; ERROR!
java.nio.file.FileSystemException: C:\Users\remko\git\lo= gging-log4j2\log4j-core\target\testWatchFile: The process cannot access the= file because it is being used by another process.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.nio.fs.WindowsException.translateToIOEx= ception(WindowsException.java:86)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at = sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.nio.fs.WindowsException.rethro= wAsIOException(WindowsException.java:102)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.nio.fs.WindowsFileSystemProvider.copy= (WindowsFileSystemProvider.java:278)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = at java.nio.file.Files.copy(Files.java:1274)
=C2=A0 =C2=A0 =C2=A0= =C2=A0 at org.apache.logging.log4j.core.util.WatchManagerTest.testWatchMan= ager(WatchManagerTest.java:63)


On Mon, Oct 19, 201= 5 at 9:37 PM, Gary Gregory <garydgregory@gmail.com> wro= te:
I get this from= time to time. Not sure why yet...

Tests run: 1, F= ailures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.078 sec <<< FAI= LURE! - in org.apache.logging.log4j.core.util.WatchManagerTest
te= stWatchManager(org.apache.logging.log4j.core.util.WatchManagerTest) =C2=A0T= ime elapsed: 1.078 sec =C2=A0<<< ERROR!
java.nio.file.Fi= leSystemException:
E:\vcs\git\apache\logging\logging-log4j2\log4j= -core\target\testWatchFile: The process cannot access the file because it i= s being used by another process.

=C2=A0 =C2=A0 =C2= =A0 =C2=A0 at org.apache.logging.log4j.core.util.WatchManagerTest.testWatch= Manager(WatchManagerTest.java:63)

Running org.apac= he.logging.log4j.MarkerMixInTest
Tests run: 3, Failures: 0, Error= s: 0, Skipped: 0, Time elapsed: 0.375 sec - in org.apache.logging.log4j.Mar= kerMixInTest

Results :

Te= sts in error:
=C2=A0 WatchManagerTest.testWatchManager:63 =E2=95= =97 FileSystem E:\vcs\git\apache\logging\lo...

Tes= ts run: 933, Failures: 0, Errors: 1, Skipped: 30


--





--
=




--
--001a11c269b06c0bed05228ee17d--