More tweaks to JMX related exception handling

This commit is contained in:
Kris De Volder
2018-12-05 15:55:51 -08:00
parent 989c966709
commit f0bd1f7f37

View File

@@ -24,6 +24,7 @@ import java.util.Properties;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import javax.management.InstanceNotFoundException;
@@ -238,6 +239,10 @@ public abstract class AbstractSpringBootApp implements SpringBootApp {
} catch (IOException e) {
// PT 160096886 - Don't throw exception, as actuator info will not be available when app stopping, and
// this is not an error condition. Return empty model instead.
} catch (ExecutionException e) {
if (!(e.getCause() instanceof IOException)) {
throw e;
}
}
if (json != null) {
String md5 = DigestUtils.md5Hex(json.toString());