java.io.IOException: Cannot create a file when that file already exists

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 Oracle Community by avrom, 1 year ago
Cannot create a file when that file already exists
via Oracle Community by avrom, 4 months ago
Cannot create a file when that file already exists 08/03/25 15:56:16
java.io.IOException: Cannot create a file when that file already exists
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:177)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at oracle.core.ojdl.BusStopLogWriter.writeBytes(BusStopLogWriter.java:240)
at oracle.core.ojdl.BufferedLogWriter.flush(BufferedLogWriter.java:159)
at oracle.core.ojdl.BufferedLogWriter$Flusher.run(BufferedLogWriter.java:396)

Users with the same issue

2 times, 1 year ago
Once, 10 months ago

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