File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
prj/coherence-core/src/main/java/com/tangosol/net/management Expand file tree Collapse file tree 1 file changed +15
-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.
1919import com .tangosol .util .Base ;
2020import com .tangosol .util .Filter ;
2121
22+ import com .tangosol .util .WrapperException ;
2223import com .tangosol .util .function .Remote ;
2324
2425import java .io .Serializable ;
@@ -797,6 +798,19 @@ public Map<String, Object> apply(MBeanServer mBeanServer)
797798
798799 continue ;
799800 }
801+ catch (WrapperException e )
802+ {
803+ if (e .getCause () instanceof InstanceNotFoundException )
804+ {
805+ // ignore; assume MBean unregistered between query and invoke
806+ CacheFactory .log ("MBeanAccessor$Invoke#apply(mbeanServer=" + mBeanServer +
807+ ", objName=" + sObjectName +
808+ "): ignoring InstanceNotFoundException: " + e .getMessage (), Base .LOG_QUIET );
809+
810+ continue ;
811+ }
812+ throw e ;
813+ }
800814 mapMBeans .put (sObjectName , result );
801815 }
802816 return mapMBeans ;
You can’t perform that action at this time.
0 commit comments