Skip to content

Commit

Permalink
Merge pull request #5 from BlueMedora/runtime-exception-fix
Browse files Browse the repository at this point in the history
Runtime exception fix
  • Loading branch information
varas authored Aug 9, 2018
2 parents f008039 + 2c5c680 commit 9f7707a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/newrelic/nrjmx/JMXFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import javax.management.ObjectInstance;
import javax.management.ObjectName;
import javax.management.ReflectionException;
import javax.management.RuntimeMBeanException;
import javax.management.RuntimeOperationsException;
import javax.management.openmbean.CompositeData;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
Expand Down Expand Up @@ -99,7 +101,7 @@ public void queryAttributes(ObjectInstance instance) throws QueryError {

try {
value = connection.getAttribute(objectName, attrName);
} catch (AttributeNotFoundException | InstanceNotFoundException | MBeanException | ReflectionException | IOException e) {
} catch (AttributeNotFoundException | InstanceNotFoundException | MBeanException | ReflectionException | IOException | RuntimeMBeanException | RuntimeOperationsException e) {
logger.warning("Can't get attribute " + attrName + " for bean " + objectName.toString());
continue;
}
Expand Down

0 comments on commit 9f7707a

Please sign in to comment.