I have upgraded to Catalina yesterday (10.15.1 (19B88)
), and now my java projects are not working properly.
All the files that the application should generate are not being created: logs, csv files, content written with FileWrite(...).write(...)
, etc.
My spring boot projects should create multiple logs (it did on Mojave) and none of them are working after the upgrade. Also, when I programmatically create a file with FileWriter I get below exception:
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[na:1.8.0_212]
at java.io.File.createNewFile(File.java:1012) ~[na:1.8.0_212]
I have tried multiple different things and still no luck. I tried:
- Updating to latest version of java 8,
1.8.0_231
. - Moved all path to point to my home directory
/Users/fd
- Since Catalina has a new volume and we have a lot of firmlinks, I also tried pointing to the absolute path
/System/Volumes/Data/Users/fd
Have found this Oracle notes that states:
Changes introduced with macOS 10.15 (Catalina) cause certain Java applications to behave incorrectly. Therefore, we cannot certify any JDK version on macOS 10.15 yet. If you still want to install and test the JDK or JRE on macOS 10.15, then this document covers what you will experience as you install the JDK or JRE.
...but nothing is stated about the problem that no files can be created through java.
Does anyone know how to fix this issue?