spring-attic / spring-cloud-dataflow-server-cloudfoundry

Spring Cloud Data Flow Implementation for Cloud Foundry
http://cloud.spring.io/spring-cloud-dataflow-server-cloudfoundry/
Apache License 2.0
21 stars 42 forks source link

Rabbit connection refused #375

Closed jvmlet closed 6 years ago

jvmlet commented 6 years ago

Hello I've the SCDF deployed in CF using the manifest:

---
applications:
- name: data-flow-server
  host: data-flow-server
  memory: 2G
  buildpack: java_buildpack
  disk_quota: 2G
  instances: 1
  path: spring-cloud-dataflow-server-cloudfoundry-1.2.4.RELEASE.jar
  env:
    SPRING_APPLICATION_NAME: data-flow-server
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_URL: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_ORG: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SPACE: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_DOMAIN: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_USERNAME: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_PASSWORD: ****
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_SERVICES: imcs-asp-dev-mq
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_BUILDPACK: java_buildpack
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_SERVICES: imcs-asp-dev-rds-pssql
    SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SKIP_SSL_VALIDATION: true
    SPRING_APPLICATION_JSON: {"maven": { "remote-repositories": { "repo1": { "url": "https://repo.spring.io/libs-release"} } } }
  services:
    - imcs-asp-dev-rds-pssql

imcs-asp-dev-mq is a RabbitMQ service.

I've also created and successfully deployed the simple stream app scdf-demo with definition http | log. The exchange scdf-demo.http and bounded queue scdf-demo.http.scdf-demo are successfully created in RabbitMQ. My problem is that when I post to http, I'm getting Connection refused exeption :

   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT 2017-12-13 11:04:16.466 ERROR 7 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.amqp.outbound.AmqpOutboundEndpoint@2738b499]; nested exception is org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused), failedMessage=GenericMessage [payload=byte[99], headers={content-length=99, http_requestMethod=POST, accept=*/*, originalContentType=application/json;charset=UTF-8, host=*******, http_requestUrl=*********, connection=close, id=dc64f3cc-dd74-7bf1-641f-765c78a90fe9, cache-control=no-cache, contentType=text/plain, accept-encoding=gzip, deflate, user-agent=PostmanRuntime/7.1.1, timestamp=1513163056464}]] with root cause
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT java.net.ConnectException: Connection refused (Connection refused)
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:50) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:61) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:99) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:900) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:859) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:799) ~[amqp-client-4.0.3.jar!/:4.0.3]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:352) ~[spring-rabbit-1.7.4.RELEASE.jar!/:na]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:573) ~[spring-rabbit-1.7.4.RELEASE.jar!/:na]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1430) ~[spring-rabbit-1.7.4.RELEASE.jar!/:na]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1411) ~[spring-rabbit-1.7.4.RELEASE.jar!/:na]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.amqp.rabbit.core.RabbitTemplate.send(RabbitTemplate.java:712) ~[spring-rabbit-1.7.4.RELEASE.jar!/:na]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.amqp.outbound.AmqpOutboundEndpoint.send(AmqpOutboundEndpoint.java:134) ~[spring-integration-amqp-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.amqp.outbound.AmqpOutboundEndpoint.handleRequestMessage(AmqpOutboundEndpoint.java:122) ~[spring-integration-amqp-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:109) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder$SendingHandler.handleMessageInternal(AbstractMessageChannelBinder.java:600) ~[spring-cloud-stream-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:148) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:121) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:89) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:425) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:115) ~[spring-messaging-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:45) ~[spring-messaging-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:105) ~[spring-messaging-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.messaging.core.AbstractMessageSendingTemplate.convertAndSend(AbstractMessageSendingTemplate.java:143) ~[spring-messaging-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.messaging.core.AbstractMessageSendingTemplate.convertAndSend(AbstractMessageSendingTemplate.java:135) ~[spring-messaging-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.gateway.MessagingGatewaySupport.send(MessagingGatewaySupport.java:392) ~[spring-integration-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.http.inbound.HttpRequestHandlingEndpointSupport.actualDoHandleRequest(HttpRequestHandlingEndpointSupport.java:525) ~[spring-integration-http-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.http.inbound.HttpRequestHandlingEndpointSupport.doHandleRequest(HttpRequestHandlingEndpointSupport.java:399) ~[spring-integration-http-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.integration.http.inbound.HttpRequestHandlingMessagingGateway.handleRequest(HttpRequestHandlingMessagingGateway.java:103) ~[spring-integration-http-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) ~[spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110) ~[spring-boot-actuator-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:208) ~[spring-security-web-4.2.3.RELEASE.jar!/:4.2.3.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) ~[spring-security-web-4.2.3.RELEASE.jar!/:4.2.3.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106) ~[spring-boot-actuator-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.cloudfoundry.router.ClientCertificateMapper.doFilter(ClientCertificateMapper.java:77) ~[client_certificate_mapper-1.4.0_RELEASE.jar!/:1.4.0.RELEASE]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
   2017-12-13T13:04:16.46+0200 [APP/PROC/WEB/0] OUT     at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152]

On the other hand, when I manually push the message directly to the scdf-demo.http.scdf-demo queue in Rabbit UI console, I see the message being logged by log application. Please advise, Thanks

sabbyanandan commented 6 years ago

Hi, @jvmlet. Thanks for reporting. We are aware of this problem in 1.3 GA / Celsius.GA release of the apps. If you happen to deploy a "custom app" built with 1.3 GA / Ditmars.GA release of Spring Cloud Stream, you will bump into the same problem as well.

The root of the problem will be addressed in AMQP-788; however, we are working on a tactical solution in the rabbit-binder. In the meantime, you can switch to the 1.2 release-line of Spring Cloud Stream (for custom apps) or the 1.2 GA / Bacon.GA release OOTB apps.

I will leave this issue open for now; once the release is complete, I will update and close it then.

jvmlet commented 6 years ago

Thanks for prompt response, @sabbyanandan

sabbyanandan commented 6 years ago

Update: Spring Cloud Stream's Ditmars.SR1 release is complete. Building upon this, we are aiming to cut the Celsius.SR1 release for the stream-apps next week.

jvmlet commented 6 years ago

Hello Are there any updates about the issue ? The latest stable apps link is Celsius-SR1 which gives the below error when rabbit app is starting. Deploying rabbit OOTB app from Bacon.RELEASE works fine.

 2018-02-08T11:40:30.86+0200 [APP/PROC/WEB/0] OUT 2018-02-08 09:40:30.848  WARN 7 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.stream.app.rabbit.source.RabbitSourceConfiguration': Unsatisfied dependency expressed through field 'rabbitProperties'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.autoconfigure.amqp.RabbitProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
   2018-02-08T11:40:30.86+0200 [APP/PROC/WEB/0] OUT 2018-02-08 09:40:30.865  INFO 7 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
sabbyanandan commented 6 years ago

Hi, @jvmlet. Yes, the release is complete; please upgrade to Celsius.SR1. Here's all the bit.ly's.

jvmlet commented 6 years ago

@sabbyanandan I've tried to deploy rabbit OOTB app from Celsius.SR1 and got below error :

 2018-02-08T11:40:30.86+0200 [APP/PROC/WEB/0] OUT 2018-02-08 09:40:30.848  WARN 7 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.stream.app.rabbit.source.RabbitSourceConfiguration': Unsatisfied dependency expressed through field 'rabbitProperties'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.autoconfigure.amqp.RabbitProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
   2018-02-08T11:40:30.86+0200 [APP/PROC/WEB/0] OUT 2018-02-08 09:40:30.865  INFO 7 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]

rabbit app from Bacon.RELEASE works fine.

sabbyanandan commented 6 years ago

This doesn't show the entire stracktrace; could you share it, please? Also, if you can share the steps how you tried the SR1 that'd help, too.