Voila:

java.nio.file.FileSystemException: target\testfile: 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.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1118)
at
org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicyTest.cleanup(OnStartupTriggeringPolicyTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Gary

On Tue, Jun 21, 2016 at 1:22 PM, Ralph Goers <ralph.go...@dslextreme.com>
wrote:

> I’d need the rest of the error message on OnStartupTriggeringPolicyTest,
> but the line it is failing on is to delete the log file if it exists after
> the test has completed.
>
> We need to determine why Windows thinks the file is in use on the
> RollingAppenderSizeTest. I suspect this is the same problem our Windows
> have been complaining about on the RollingFileAppender.
>
> Ralph
>
>
> On Jun 21, 2016, at 12:33 PM, Gary Gregory <garydgreg...@gmail.com> wrote:
>
> On Windows 7 and Java 8 I see:
>
> Results :
>
> Failed tests:
>   JeroMqAppenderTest.testServerOnly:123
>   RollingAppenderSizeTest.testAppender:141->deleteDir:154 Unable to delete
> rollingtest.log due to FileSystemException:
> target\rolling1\rollingtest.log: The process cannot access the file because
> it is being used by another process.
>
>   RollingAppenderSizeTest.testAppender:141->deleteDir:154 Unable to delete
> rollingtest.log due to FileSystemException:
> target\rolling1\rollingtest.log: The process cannot access the file because
> it is being used by another process.
>
>   RollingAppenderSizeTest.testAppender:141->deleteDir:154 Unable to delete
> rollingtest.log due to FileSystemException:
> target\rolling1\rollingtest.log: The process cannot access the file because
> it is being used by another process.
>
>   RollingAppenderSizeTest.testAppender:141->deleteDir:154 Unable to delete
> rollingtest.log due to FileSystemException:
> target\rolling1\rollingtest.log: The process cannot access the file because
> it is being used by another process.
>
> Tests in error:
>   OnStartupTriggeringPolicyTest.cleanup:76 » FileSystem target\testfile:
> The pro...
>
> Tests run: 1200, Failures: 5, Errors: 1, Skipped: 33
>
> Anyone else?
>
> Gary
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@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: garydgreg...@gmail.com | ggreg...@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

Reply via email to