List of usage examples for org.springframework.messaging.handler.invocation InvocableHandlerMethod getShortLogMessage
public String getShortLogMessage()
From source file:org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.java
protected void processHandlerMethodException(HandlerMethod handlerMethod, Exception ex, Message<?> message) { InvocableHandlerMethod invocable = getExceptionHandlerMethod(handlerMethod, ex); if (invocable == null) { logger.error("Unhandled exception from message handler method", ex); return;// w w w. j a va 2s. com } invocable.setMessageMethodArgumentResolvers(this.argumentResolvers); if (logger.isDebugEnabled()) { logger.debug("Invoking " + invocable.getShortLogMessage()); } try { Object returnValue = invocable.invoke(message, ex, handlerMethod); MethodParameter returnType = invocable.getReturnType(); if (void.class == returnType.getParameterType()) { return; } this.returnValueHandlers.handleReturnValue(returnValue, returnType, message); } catch (Throwable ex2) { logger.error("Error while processing handler method exception", ex2); } }