---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- I have a class encounters the unresolved java bug that prevents the thread from finishing.... "A program which calls the static method getDefaultToolkit() in class Toolkit won't terminate. After starting this program, it should return to OS. However, it hangs there forever." http://developer.java.sun.com/developer/bugParade/bugs/4030718.html http://search.java.sun.com/query.html?qt=+%2B4030718+&col=obug&category=&sta te=&query=4030718+ When I was testing this class from the command line or Jbuilder, I just had a System.exit(0); as a quick fix to the end/kill the process when it was done.... But tonight, I was running this code from a servlet, and this problem arose. The System.exit(0); workaround can't be used here, b/c that kills the entire servlet... But without it, as expected, the servlet gets hung on any subsequent requests...b/c the first run has never completed Does anyone have any ideas on what to do ? I know I've been brief, so let me know if you need more detail... There was talk in that 2nd link about daemon vs. non-daemon threads, Do you think I can create a new thread in the servlet to run my class, , and have the worker thread do an observer type of callback, so the servlet can finish doing what it needs to do (redirect), and that worker thread may or may not die...at least the servlet may be able to continue taking new requests.....Then, maybe we can the worker thread kill it manually...? just ideas, havent thought it through in detail (its after midnite) -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
