java.nio.file.AccessDeniedException: .\\TestExtraTime.zip at sun.nio.fs.WindowsException.translateToIOException(java.base@9-internal/WindowsException.java:89) at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:103) at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:108) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(java.base@9-internal/WindowsFileSystemProvider.java:231) at java.nio.file.spi.FileSystemProvider.newOutputStream(java.base@9-internal/FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(java.base@9-internal/Files.java:218) at java.nio.file.Files.copy(java.base@9-internal/Files.java:3053)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JDK Bug System by Tatiana Pivovarova, 1 year ago
sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:108) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(java.base@9-internal/WindowsFileSystemProvider.java:231) at java.nio.file.spi.FileSystemProvider.newOutputStream
java.nio.file.AccessDeniedException: .\\TestExtraTime.zip at sun.nio.fs.WindowsException.translateToIOException(java.base@9-internal/WindowsException.java:89) at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:103) at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:108) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(java.base@9-internal/WindowsFileSystemProvider.java:231) at java.nio.file.spi.FileSystemProvider.newOutputStream(java.base@9-internal/FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(java.base@9-internal/Files.java:218) at java.nio.file.Files.copy(java.base@9-internal/Files.java:3053)
at undefined.TestExtraTime.test0(TestExtraTime.java:150)
at undefined.TestExtraTime.main(TestExtraTime.java:62)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.