Advertisement
Guest User

Untitled

a guest
Jul 21st, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. @MessagingGateway
  2. public interface StatusGateway {
  3. boolean getStatus();
  4. }
  5.  
  6. <rabbit:connection-factory id="rabbitConnectionFactory"
  7. host="172.17.0.2" virtual-host="/myvhost"
  8. username="myuser" password="mypasswd" />
  9.  
  10. <rabbit:template id="default" connection-factory="rabbitConnectionFactory" />
  11. <rabbit:topic-exchange name="slr-input" auto-declare="false" />
  12.  
  13. <int:gateway id="statusGateway"
  14. service-interface="com.example.StatusGateway"
  15. default-request-channel="requestChannel"
  16. default-reply-channel="replyChannel" />
  17.  
  18. <int:channel id="requestChannel" />
  19. <int:channel id="replyChannel" />
  20.  
  21. <int-amqp:outbound-gateway id="statusRequestGateway"
  22. amqp-template="default"
  23. exchange-name="slr-input"
  24. routing-key="operation.status"
  25. request-channel="requestChannel"
  26. reply-channel="replyChannel"
  27. lazy-connect="true" />
  28.  
  29. java.lang.IllegalStateException: Failed to execute CommandLineRunner
  30. at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:803) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  31. at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:784) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  32. at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:771) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  33. at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  34. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  35. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  36. at com.example.AmqpTestClientApplication.main(AmqpTestClientApplication.java:14) [classes/:na]
  37. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91]
  38. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_91]
  39. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_91]
  40. at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91]
  41. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:na]
  42. Caused by: java.lang.IllegalStateException: receive is not supported, because no pollable reply channel has been configured
  43. at org.springframework.util.Assert.state(Assert.java:392) ~[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  44. at org.springframework.integration.gateway.MessagingGatewaySupport.receive(MessagingGatewaySupport.java:380) ~[spring-integration-core-4.2.8.RELEASE.jar:na]
  45. at org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:416) ~[spring-integration-core-4.2.8.RELEASE.jar:na]
  46. at org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:382) ~[spring-integration-core-4.2.8.RELEASE.jar:na]
  47. at org.springframework.integration.gateway.GatewayProxyFactoryBean.invoke(GatewayProxyFactoryBean.java:373) ~[spring-integration-core-4.2.8.RELEASE.jar:na]
  48. at org.springframework.integration.gateway.GatewayCompletableFutureProxyFactoryBean.invoke(GatewayCompletableFutureProxyFactoryBean.java:64) ~[spring-integration-core-4.2.8.RELEASE.jar:na]
  49. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  50. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) ~[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  51. at com.sun.proxy.$Proxy44.getStatus(Unknown Source) ~[na:na]
  52. at com.example.AmqpTestClientApplication.lambda$commandLineRunner$0(AmqpTestClientApplication.java:20) [classes/:na]
  53. at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement