BF [2749008 ] Error in Task Management from webui

* Task should stop if desktop is no longer available.
* Reduce logging level from WARNING and SEVERE to FINE, too verbose.
* OSTask.java - display exception to client.
This commit is contained in:
Heng Sin Low 2009-04-22 09:35:49 +00:00
parent 1a2dd723b2
commit 0da67d98e8
2 changed files with 29 additions and 26 deletions

View File

@ -140,6 +140,7 @@ public class OSTask extends Thread
catch (IOException ioe) catch (IOException ioe)
{ {
log.log(Level.SEVERE, "(ioe)", ioe); log.log(Level.SEVERE, "(ioe)", ioe);
m_err.append(ioe.getLocalizedMessage());
} }
} // run } // run

View File

@ -134,9 +134,11 @@ public class WTask extends Window implements EventListener
Executions.deactivate(desktop); Executions.deactivate(desktop);
} }
} catch (DesktopUnavailableException e) { } catch (DesktopUnavailableException e) {
log.log(Level.SEVERE, e.getLocalizedMessage(), e); log.log(Level.FINE, e.getLocalizedMessage(), e);
osTask.interrupt();
break;
} catch (InterruptedException e) { } catch (InterruptedException e) {
log.log(Level.WARNING, e.getLocalizedMessage(), e); log.log(Level.FINE, e.getLocalizedMessage(), e);
osTask.interrupt(); osTask.interrupt();
break; break;
} }