Uploaded image for project: 'WildFly'
  1. WildFly
  2. 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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 8.1.0.Final
    • EE
    • None

      To reproduce:

          @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!");
              }
         }
      

      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.

              Unassigned Unassigned
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: