[jboss-jira] [JBoss JIRA] (WFLY-4086) If a ManagedExecutorService's Runnable throws an exception, it should not be eaten (but it's stacktrace should be shown in the console) by default
Brian Stansberry (Jira)
issues at jboss.org
Fri Jan 25 08:07:00 EST 2019
[ https://issues.jboss.org/browse/WFLY-4086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry resolved WFLY-4086.
------------------------------------
Assignee: (was: Jason Greene)
Resolution: Duplicate Issue
> If a ManagedExecutorService's Runnable throws an exception, it should not be eaten (but it's stacktrace should be shown in the console) by default
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-4086
> URL: https://issues.jboss.org/browse/WFLY-4086
> Project: WildFly
> Issue Type: Enhancement
> Components: EE
> Affects Versions: 8.1.0.Final
> Reporter: Geoffrey De Smet
> Priority: Major
>
> To reproduce:
> {code}
> @Resource(name = "DefaultManagedExecutorService")
> ManagedExecutorService executor;
> public String myRestMethod() {
> executor.submit(new SolverCallable());
> return "Submitted.";
> }
> private class SolverCallable implements Runnable {
> public void run() {
> throw new IllegalStateException("Tweety bird: Please Sylvester, don't eat me!");
> }
> }
> {code}
> Poor tweety bird's plea (nor the stacktrace) doesn't show up in the WildFly console of a vanilla installation.
> This led me to believe I had no error.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list