Crazy wild guess looking at the stack trace ... > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:283) at
A snoop of sun.nio.fs.UnixCopyFile shows its calling the system call utimes() or futimes() (probably utimes) - And the CIFS mount doesn't support that. A quick test would be to write a "1 liner" java program that uses java.nio.file.Files.copy with paths in that CIFS mount -Tim On Wed, Feb 7, 2024 at 10:49 AM Beard, Shawn <sbe...@wrberkley.com.invalid> wrote: > It is on a Linux server, The file system mentions is actually a CIFS mount > from a windows server. Its not creating a directory, only that file. Odd > thing is that I can manually create a file in that directory as the user > Tomcat is running as using touch. > > <SNIP> > > > > On 2/6/24 13:52, Beard, Shawn wrote: > > An application we have running in Tomcat 9 using Java 8 is throwing > > this error when trying to create a file: > > > > java.nio.file.FileSystemException > > /path/to/filesystem/202311WEB/040389461310_08_37_246.jpg: Operation > > not permitted at > > sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) > > at > > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > > at > > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > > at sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:283) at > > sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:581) at > > sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253 > > ) at java.nio.file.Files.copy(Files.java:1274) at > > org.apache.commons.io.FileUtils.copyFile(FileUtils.java:850) at > > org.apache.commons.io.FileUtils.copyFile(FileUtils.java:756) at > >