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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...