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:
parent
1a2dd723b2
commit
0da67d98e8
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue