"Wrong response type '" + respType + "'");
}
// throw exception, didn't get
// back right attribute type
throw new MBeanException(
new InvalidAttributeValueException(
"Wrong value type received for get attribute"),
"An exception occurred while trying to get an " +
"attribute value through a RequiredModelMBean");
}
}
}
} else {
if (tracing) {
MODELMBEAN_LOGGER.logp(Level.FINER,
RequiredModelMBean.class.getName(), mth,
"getMethod failed " + attrName +
" not in attributeDescriptor\n");
}
throw new MBeanException(new
InvalidAttributeValueException(
"Unable to resolve attribute value, " +
"no getMethod defined in descriptor for attribute"),
"An exception occurred while trying to get an "+
"attribute value through a RequiredModelMBean");