method.invoke(derivableHTTPMessageEntity, arguments);
} catch (NoSuchMethodException e) {
e.printStackTrace();
logger.error("unexpected-no-such-method-exception", e);
error(new XMLProcessingException(
exceptionLocalizer.format(
"unexpected-no-such-method-exception"),
getPipelineContext().getCurrentLocator(),
e));
} catch (SecurityException e) {
e.printStackTrace();
logger.error("unexpected-security-exception", e);
error(new XMLProcessingException(
exceptionLocalizer.format(
"unexpected-security-exception"),
getPipelineContext().getCurrentLocator(),
e));
} catch (IllegalAccessException e) {
e.printStackTrace();
logger.error("unexpected-illegal-access-exception", e);
error(new XMLProcessingException(
exceptionLocalizer.format(
"unexpected-illegal-access-exception"),
getPipelineContext().getCurrentLocator(),
e));
} catch (IllegalArgumentException e) {
e.printStackTrace();
logger.error("unexpected-exception", e);
error(new XMLProcessingException(
exceptionLocalizer.format("unexpected-excpetion"),
getPipelineContext().getCurrentLocator(),
e));
} catch (InvocationTargetException e) {
e.printStackTrace();
logger.error("unexpected-invocation-target-exception", e);
error(new XMLProcessingException(
exceptionLocalizer.format(
"unexpected-invocation-target-exception"),
getPipelineContext().getCurrentLocator(),
e));
} finally {
// Reset the chars array.
chars = null;
}
} else {
final String message = "localName, characters and message entity " +
"should not be null. Values are: localName='" + localName +
"', chars='" + chars + "', derivableMessageEntity='" +
derivableHTTPMessageEntity + "'";
if (logger.isDebugEnabled()) {
logger.debug(message);
}
error(new XMLProcessingException(
message, getPipelineContext().getCurrentLocator()));
}
}