These are chat archives for spring-cloud/spring-cloud

19th
Sep 2017
jianwen
@user20161119
Sep 19 2017 02:02
@herder thanks
Saminda Peramuna
@samindaperamuna
Sep 19 2017 15:17
HI
My view is not displayed on controller return. I am using Thymeleaf. Nothing is shown on the console as well.
prakash
@prakashdhulipal_twitter
Sep 19 2017 19:07
Hi I am getting error for my spring gateway when i tried to run it in Predix cloud foundry
2017-09-19T15:03:31.55-0400 [App/0]      OUT 2017-09-19 19:03:31.552  INFO 29 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2017-09-19T15:04:41.79-0400 [App/0]      OUT 2017-09-19 19:04:41.797  WARN 29 --- [io-62522-exec-9] o.s.c.n.z.filters.post.SendErrorFilter   : Error during filtering
2017-09-19T15:04:41.79-0400 [App/0]      OUT com.netflix.zuul.exception.ZuulException: Forwarding error
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:163) ~[spring-cloud-netflix-core-1.3.4.RELEASE.jar!/:1.3.4.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:112) ~[zuul-core-1.3.0.jar!/:1.3.0]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:81) ~[zuul-core-1.3.0.jar!/:1.3.0]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) [spring-webmvc-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) [spring-boot-1.5.6.RELEASE.jar!/:1.5.6.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.16.jar!/:8.5.16]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.16.jar!/:8.5.1
applications are able to register with eureka server, but when i ping from eureka gateway to another micro service i am getting timeout error
following are my configuration for eureka gate way
eureka:
   instance:
    statusPageUrl: https://${eureka.hostname}/info
    healthCheckUrl: https://${eureka.hostname}/health
    homePageUrl: https://${eureka.hostname}/
    hostname: ${vcap.application.uris[0]}
    non-secure-port-enabled: false
    secure-port-enabled: true
    secure-port: ${server.port}
    prefer-ip-address: false

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 60000
zuul:
  prefix: /api
prakash
@prakashdhulipal_twitter
Sep 19 2017 19:23

by observing the logs I am able to see http call instead of https as per following logs

2017-09-19T15:04:41.80-0400 [RTR/2]      OUT dev-joule-core-gateway.run.corporate.predix.io - [2017-09-19T19:04:37.770+0000] "GET /api/joule-component HTTP/1.1" 500 0 305 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" "x.x.x.x:30580" "x.x.x.x:62522" x_forwarded_for:"-" x_forwarded_proto:"http" vcap_request_id:"eb6cb110-2203-402a-6f40-ca62222ba275" response_time:4.037009284 app_id:"a93982bb-5494-48a8-8481-dbbb5f7b9085" app_index:"-" x_b3_traceid:"e5bbc55470f7c1fd" x_b3_spanid:"e5bbc55470f7c1fd" x_b3_parentspanid:"-"
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:188) ~[spring-cloud-netflix-core-1.3.4.RELEASE.jar!/:1.3.4.RELEASE]
2017-09-19T15:04:41.79-0400 [App/0]      OUT    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:111) ~[spring-cloud-netflix-core-1.3.4.RELEASE.jar!/:1.3.4.RELEASE]

Can any one please help me on this issue