kidhack Posted November 3, 2017 Posted November 3, 2017 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! Quote
Krydos Posted November 4, 2017 Posted November 4, 2017 java.io.FileNotFoundException: file_tv.m3u8File not found. Did you delete that file? Quote
kidhack Posted November 4, 2017 Author Posted November 4, 2017 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 Quote
Krydos Posted November 4, 2017 Posted November 4, 2017 What is the path you're trying to write to? Quote
kidhack Posted November 4, 2017 Author Posted November 4, 2017 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.