Hi Vassil,

Don’t you have two tests running ? 

I never had this issue (but I’m not using Windows), and Jenkins works fine.

Do you have a simple test case to reproduce ?

Regards
JB

> Le 18 avr. 2021 à 12:58, Васил Зорев <vassil.zore...@gmail.com> a écrit :
> 
> Reposted from the user mailing list:
> 
> Hello,
> 
> I tried to run some of the unit tests in the itests project to check an 
> issue, but most of them failed. The most common error is that pax exam 
> couldn't start the container as it failed to replace the 
> etc\org.ops4j.pax.logging.cfg file.
> 
> Caused by: java.nio.file.FileSystemException: 
> C:\Users\vasil\IdeaProjects\karaf\itests\test\target\exam\95aa38e2-a6a1-405e-8072-afe35347a34e\etc\org.ops4j.pax.logging.cfg:
>  The process cannot access the file because it is being used by another 
> process.
> at 
> java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
> ... (full log attached)
> 
> I have checked out karaf sources version 4.2.12-SNAPSHOT from some time ago 
> (probably a few months).
> 
> Please find attached the intellij test log.
> It failed the same way when I executed the test as part of the maven build.
> 
> I added a breakpoint at the place where the FileSystemException is thrown and 
> examined the open file handles of this file in Sysinternals Process Explorer. 
> Seems there are two open file handles for it, both by the same java process 
> that is executing the test (screenshots attached).
> 
> Please let me know if this is a known issue on my end if i can already 
> resolve it, is it version dependent or something else? Also I can provide 
> further details if needed.
> 
> Regards,
> Vassil
> <failed test.txt>

Reply via email to