java.lang.IllegalStateException

Failed to execute CommandLineRunner

Samebug tips2

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.

Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13500

  • via Coderanch by Samantha Spillane, 6 months ago
    Failed to execute CommandLineRunner
  • via GitHub by kopax
    , 6 months ago
    Failed to execute CommandLineRunner
  • Failed to execute CommandLineRunner
  • Stack trace

    • java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:803)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:784)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:771)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE] at com.example.AmqpTestClientApplication.main(AmqpTestClientApplication.java:14)[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)[idea_rt.jar:na] Caused by: java.lang.IllegalStateException: receive is not supported, because no pollable reply channel has been configured at org.springframework.util.Assert.state(Assert.java:392)[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.integration.gateway.MessagingGatewaySupport.receive(MessagingGatewaySupport.java:380)[spring-integration-core-4.2.8.RELEASE.jar:na] at org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:416)[spring-integration-core-4.2.8.RELEASE.jar:na] at org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:382)[spring-integration-core-4.2.8.RELEASE.jar:na] at org.springframework.integration.gateway.GatewayProxyFactoryBean.invoke(GatewayProxyFactoryBean.java:373)[spring-integration-core-4.2.8.RELEASE.jar:na] at org.springframework.integration.gateway.GatewayCompletableFutureProxyFactoryBean.invoke(GatewayCompletableFutureProxyFactoryBean.java:64)[spring-integration-core-4.2.8.RELEASE.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE] at com.sun.proxy.$Proxy44.getStatus(Unknown Source)[na:na] at com.example.AmqpTestClientApplication.lambda$commandLineRunner$0(AmqpTestClientApplication.java:20)[classes/:na] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    26 times, 12 hours ago
    18 times, 2 months ago
    Once, 4 months ago
    8 times, 5 months ago
    4 times, 6 months ago
    64 more bugmates