Skip to content

Commit 23f27e5

Browse files
committed
Bug 35532087 - Build: management.ManagementInfoResource*.testTruncateCache (14.1.1.0 -> ce-v14.1.1.0, ce-main, ce-v22.06, @101474)
[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.1.0/": change = 101485]
1 parent 0295bb7 commit 23f27e5

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

prj/coherence-core/src/main/java/com/tangosol/net/management/MBeanAccessor.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
@@ -19,6 +19,7 @@
1919
import com.tangosol.util.Base;
2020
import com.tangosol.util.Filter;
2121

22+
import com.tangosol.util.WrapperException;
2223
import com.tangosol.util.function.Remote;
2324

2425
import 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;

0 commit comments

Comments
 (0)