logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: WatchManagerTest failure
Date Tue, 20 Oct 2015 20:12:26 GMT
I most likely some file locking problem... :-(
Gary

On Tue, Oct 20, 2015 at 1:02 PM, Ralph Goers <ralph.goers@dslextreme.com>
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 <garydgregory@gmail.com> 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-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>
>> 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 process.
>>>
>>>         at
>>> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java: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.java:278)
>>>         at java.nio.file.Files.copy(Files.java:1274)
>>>         at
>>> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(WatchManagerTest.java:63)
>>>
>>>
>>> On Mon, Oct 19, 2015 at 9:37 PM, Gary Gregory <garydgregory@gmail.com>
>>> 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.WatchManagerTest
>>>> 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\testWatchFile:
>>>> The process cannot access the file because it is being used by another
>>>> process.
>>>>
>>>>         at
>>>> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(WatchManagerTest.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 ╗ 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
>>>> <http://www.manning.com/bauer3/>
>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>> 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
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> 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
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
View raw message