Jump to content

[Solved] Since Yesterday Permission Denied Writing File In Java Servlet


Recommended Posts

Posted

Hello! I have a servlet that creates a file with a m3u list and then the file was downloaded... since yesterday, java launchs a exception (permission denied):


Estado HTTP 500 - file_tv.m3u8 (Permission denied)

type Informe de Excepción

mensaje file_tv.m3u8 (Permission denied)

descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.

excepción

java.io.FileNotFoundException: file_tv.m3u8 (Permission denied)
java.io.FileOutputStream.open0(Native Method)
java.io.FileOutputStream.open(FileOutputStream.java:270)
java.io.FileOutputStream.<init>(FileOutputStream.java:213)
java.io.FileOutputStream.<init>(FileOutputStream.java:133)
com.avz.servlets.MainServlet.generateTVFile(MainServlet.java:315)
com.avz.servlets.MainServlet.doGet(MainServlet.java:54)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/8.5.4.

Thanks!

Posted

No, file not found because the file cant be created: java.io.FileNotFoundException: file_tv.m3u8 (Permission denied)

 

I havent write permission 2 days ago

Posted

I trying to write in the app folder and always was OK but since two days I havent permissions... I changed my code to write in the tomcat temp folder and here I have permissions. You can close the post, thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...