File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
prj/coherence-core/src/main/java/com/tangosol/net/management Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2000, 2022 , Oracle and/or its affiliates.
2+ * Copyright (c) 2000, 2023 , Oracle and/or its affiliates.
33 *
44 * Licensed under the Universal Permissive License v 1.0 as shown at
55 * https://oss.oracle.com/licenses/upl.
2020import com .tangosol .util .Base ;
2121import com .tangosol .util .Filter ;
2222
23+ import com .tangosol .util .WrapperException ;
24+
2325import com .tangosol .util .filter .AlwaysFilter ;
2426import com .tangosol .util .function .Remote ;
2527
@@ -806,6 +808,19 @@ public Map<String, Object> apply(MBeanServer mBeanServer)
806808
807809 continue ;
808810 }
811+ catch (WrapperException e )
812+ {
813+ if (e .getCause () instanceof InstanceNotFoundException )
814+ {
815+ // ignore; assume MBean unregistered between query and invoke
816+ CacheFactory .log ("MBeanAccessor$Invoke#apply(mbeanServer=" + mBeanServer +
817+ ", objName=" + sObjectName +
818+ "): ignoring InstanceNotFoundException: " + e .getMessage (), Base .LOG_QUIET );
819+
820+ continue ;
821+ }
822+ throw e ;
823+ }
809824 mapMBeans .put (sObjectName , result );
810825 }
811826 return mapMBeans ;
You can’t perform that action at this time.
0 commit comments