dognobbler
Programmer
My site has a number of servlets that send emails out ( ie. when a user registers for an account). The text of the email is held in a text file which the servlets opens and reads using the following line:
FileReader fr4 = new FileReader("../webapps/uk2/jsp/contactMail1.txt"
This normally works fine however every couple of days when I attempt to access this servlet I get the following error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.io.FileNotFoundException: ../webapps/uk2/jsp/contactMail1.txt (No such file or directory)
If I restart the server then everything reverts to normal and the servlet begins working fine again.
The problem appears to be related to the amount of traffic my site is getting. If my site is getting 800 impressions a day the error occurs approx every 3 to 4 days, if the site is receiving 400 impressions it occurs approx every 4-6 days.
Does anyone have any idea what the problem may be, and what I could do to fix it?
Regards
Andy
FileReader fr4 = new FileReader("../webapps/uk2/jsp/contactMail1.txt"
This normally works fine however every couple of days when I attempt to access this servlet I get the following error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.io.FileNotFoundException: ../webapps/uk2/jsp/contactMail1.txt (No such file or directory)
If I restart the server then everything reverts to normal and the servlet begins working fine again.
The problem appears to be related to the amount of traffic my site is getting. If my site is getting 800 impressions a day the error occurs approx every 3 to 4 days, if the site is receiving 400 impressions it occurs approx every 4-6 days.
Does anyone have any idea what the problem may be, and what I could do to fix it?
Regards
Andy