Applet fills windows profile space with error log text
posted 11 years ago
We have an applet which spews debug information (such as error stack traces) to standard out. This can then be viewed in the sun 'java console'. But the information is also being written to a file in the user's profile space.
Now in some cases the applet is going haywire and spewing an exception stack trace repeatedly. This all goes into the file, and actually fills the user's profile space!
Obviously the repeated exception throwing is something we need to track down and fix, but I was a bit surprised that applet was able to have such a destructive effect. Maybe it's because it requires extra security permissions (for other reasons), and so it's allowed to do this. Or maybe any applet could do the same damage in this way.
Anyway... Anyone know any tricks with the windows java plug-in, to help with this problem. Ideally I should be able to limit the size of the trace file, so that it only stores the latest 1000 lines added.