java.lang.IllegalStateException: Failed to execute CommandLineRunner

tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.
    via GitHub by trisberg
  2. 0
    samebug tip
    Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Spring http outbound gateway wants to use PollableChannel instead of DirectChannel

    Stack Overflow | 3 months ago | detrist
    java.lang.IllegalStateException: receive is not supported, because no pollable reply channel has been configured
  5. 0

    Simple WebMvcTest fails with Spring Boot 1.4M3 due to missing SpringBootConfiguration

    GitHub | 11 months ago | jgoldhammer
    java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    receive is not supported, because no pollable reply channel has been configured

    at org.springframework.util.Assert.state()
  2. Spring Core
    Assert.state
    1. org.springframework.util.Assert.state(Assert.java:392)[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  3. Spring Integration Core
    GatewayCompletableFutureProxyFactoryBean.invoke
    1. org.springframework.integration.gateway.MessagingGatewaySupport.receive(MessagingGatewaySupport.java:380)[spring-integration-core-4.2.8.RELEASE.jar:na]
    2. org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:416)[spring-integration-core-4.2.8.RELEASE.jar:na]
    3. org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:382)[spring-integration-core-4.2.8.RELEASE.jar:na]
    4. org.springframework.integration.gateway.GatewayProxyFactoryBean.invoke(GatewayProxyFactoryBean.java:373)[spring-integration-core-4.2.8.RELEASE.jar:na]
    5. org.springframework.integration.gateway.GatewayCompletableFutureProxyFactoryBean.invoke(GatewayCompletableFutureProxyFactoryBean.java:64)[spring-integration-core-4.2.8.RELEASE.jar:na]
    5 frames
  4. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  5. com.sun.proxy
    $Proxy44.getStatus
    1. com.sun.proxy.$Proxy44.getStatus(Unknown Source)[na:na]
    1 frame
  6. com.example
    AmqpTestClientApplication.lambda$commandLineRunner$0
    1. com.example.AmqpTestClientApplication.lambda$commandLineRunner$0(AmqpTestClientApplication.java:20)[classes/:na]
    1 frame
  7. Spring Boot
    SpringApplication.callRunner
    1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame