Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: 3.0 M2
-
Fix Version/s: 3.0 M3
-
Component/s: None
-
Labels:
Description
INT-3007 added a warning if a request handler advice was applied to something other than a MessageHandler.
However, the warning is emitted for other methods on the handler...
11:17:13,496 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'isAutoStartup' in 'org.springframework.context.SmartLifecycle' is ignored 11:17:13,499 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getPhase' in 'org.springframework.context.Phased' is ignored 11:17:13,500 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'isRunning' in 'org.springframework.context.Lifecycle' is ignored 11:17:13,500 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'isAutoStartup' in 'org.springframework.context.SmartLifecycle' is ignored 11:17:13,501 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'start' in 'org.springframework.context.Lifecycle' is ignored 11:17:13,501 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getComponentType' in 'org.springframework.integration.context.NamedComponent' is ignored 11:17:13,501 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'start' in 'org.springframework.context.Lifecycle' is ignored 11:17:13,502 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getPhase' in 'org.springframework.context.Phased' is ignored 11:17:13,669 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getPhase' in 'org.springframework.context.Phased' is ignored 11:17:13,670 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'isRunning' in 'org.springframework.context.Lifecycle' is ignored 11:17:13,670 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getPhase' in 'org.springframework.context.Phased' is ignored 11:17:13,671 WARN http-bio-8080-exec-1 advice.RequestHandlerRetryAdvice:55 - This advice org.springframework.integration.handler.advice.RequestHandlerRetryAdvice can only be used for MessageHandlers; an attempt to advise method 'getPhase' in 'org.springframework.context.Phased' is ignored
Need to check the target before emitting the warning.