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

28th
Nov 2018
Ali Akbar Azizkhani
@azizkhani
Nov 28 2018 05:52
Hi all . I have problem in gateway and i dont know what is cause of this exception .please help me

com.netflix.zuul.exception.ZuulException: Filter threw Exception
    at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:227) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.FilterProcessor.postRoute(FilterProcessor.java:92) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.ZuulRunner.postRoute(ZuulRunner.java:87) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.http.ZuulServlet.postRoute(ZuulServlet.java:107) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:88) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44) [spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110) [spring-boot-actuator-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-4.
Caused by: java.lang.reflect.UndeclaredThrowableException: null
    at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:317) ~[spring-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
    at org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter.run(SendResponseFilter.java:120) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:112) ~[zuul-core-1.3.0.jar!/:1.3.0]
    at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193) ~[zuul-core-1.3.0.jar!/:1.3.0]
    ... 64 common frames omitted
Caused by: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:356) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:815) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:720) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:391) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:369) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter.writeResponse(SendResponseFilter.java:219) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    at org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter.writeResponse(SendResponseFilter.java:188) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    at org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter.run(SendResponseFilter.java:117) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    ... 66 common frames omitted
Caused by: java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[na:1.8.0_112]
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[na:1.8.0_112]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[na:1.8.0_112]
    at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[na:1.8.0_112]
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) ~[na:1.8.0_112]
    at org.apache.tomcat.util.net.SecureNioChannel.flush(SecureNioChannel.java:143) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.SecureNioChannel.write(SecureNioChannel.java:645) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:157) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1267) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:670) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:450) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:388) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:644) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:123) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:235) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.coyote.Response.doWrite(Response.java:541) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:351) ~[tomcat-embed-core-8.5.23.jar!/:8.5.23]
    ... 74 common frames
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 28 2018 08:54
@robachmann we always like to keep on top of the updates, but if they are breaking updates, they have to wait till major releases as backwards compatibility is something we take seriously; a major release would be 3.0.0 - unfortunately not yet scheduled - we will definitely upgrade then. I'm sorry that we can't do it earlier.
Hello @azizkhani looks like client disconnected during writing output: ClientAbortException: java.io.IOException: Broken pipe
Ali Akbar Azizkhani
@azizkhani
Nov 28 2018 08:59
@OlgaMaciaszek how user disconnect connection ?
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 28 2018 09:29
That's difficult to say, could have lost connection to Internet and a variety of other reasons - do you get this exception more often? are you able to reproduce this?
pradeepkusingh
@pradeepkusingh
Nov 28 2018 13:57
@spencergibb need one help , how to evict dead instance fast from eureka registry? which properties control it?
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 28 2018 15:30
@pradeepkusingh what exctly is the issue in question? is the instance down, but still visible in Eureka?
pradeepkusingh
@pradeepkusingh
Nov 28 2018 15:38
yes, and I keep getting zuul forwarding error
@OlgaMaciaszek as ZUUL/Ribbon assumed that server is still up and running keep trying to send traffic
eureka.instance.lease-expiration-duration-in-seconds = 60
though I specified above , still it takes more than 15 to 30 miutes to unregistered the dead instance
This property missing "eureka.server.eviction-interval-timer-in-ms = 60 * 1000", I am not specifying this one
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 28 2018 15:41
ok. it might be in self-preservation mode: https://github.com/Netflix/eureka/wiki/Server-Self-Preservation-Mode , you can switch it off by setting eureka.server.enableSelfPreservation to false - but it might not be the best approach, so I suggest you read this post by @ryanjbaxter before changing it: http://ryanjbaxter.com/cloud/spring%20cloud/spring/2017/01/05/eureka-eviction.html
pradeepkusingh
@pradeepkusingh
Nov 28 2018 15:43
yes, we are in self preservation mode and I have 30% enabled ..it doesn't work in even I have 90% instance available
I brought down only 2 out of 12
we watn self preservation mode true
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 28 2018 16:01
you mean eureka.server.renewalPercentThreshold is set to 30%?
what are your eureka.instance.leaseRenewalIntervalInSeconds values?
Marcos Barbero
@marcosbarbero
Nov 28 2018 17:31
@pradeepkusingh what's the environment that you are running it thought?
Chintan Barad
@chintanb
Nov 28 2018 19:52

Hi folks,
Getting following error with stack trace.

12:11:58 2018-11-28 17:11:58,623  WARN [api-saml-idp,,,] 1207 [      Thread-63] o.s.c.support.DefaultLifecycleProcessor  : Failed to stop bean 'inputBindingLifecycle'
12:11:58 java.lang.NullPointerException: null
12:11:58     at org.springframework.cloud.stream.binding.BindingService.unbindConsumers(BindingService.java:274)
12:11:58     at org.springframework.cloud.stream.binding.BindableProxyFactory.unbindInputs(BindableProxyFactory.java:268)
12:11:58     at org.springframework.cloud.stream.binding.InputBindingLifecycle.doStopWithBindable(InputBindingLifecycle.java:57)
12:11:58     at java.util.Iterator.forEachRemaining(Iterator.java:116)
12:11:58     at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
12:11:58     at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
12:11:58     at org.springframework.cloud.stream.binding.AbstractBindingLifecycle.stop(AbstractBindingLifecycle.java:55)
12:11:58     at org.springframework.cloud.stream.binding.InputBindingLifecycle.stop(InputBindingLifecycle.java:31)
12:11:58     at org.springframework.cloud.stream.binding.AbstractBindingLifecycle.stop(AbstractBindingLifecycle.java:72)
12:11:58     at org.springframework.cloud.stream.binding.InputBindingLifecycle.stop(InputBindingLifecycle.java:31)
12:11:58     at org.springframework.context.support.DefaultLifecycleProcessor.doStop(DefaultLifecycleProcessor.java:238)
12:11:58     at org.springframework.context.support.DefaultLifecycleProcessor.access$300(DefaultLifecycleProcessor.java:53)
12:11:58     at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.stop(DefaultLifecycleProcessor.java:377)
12:11:58     at org.springframework.context.support.DefaultLifecycleProcessor.stopBeans(DefaultLifecycleProcessor.java:210)
12:11:58     at org.springframework.context.support.DefaultLifecycleProcessor.onClose(DefaultLifecycleProcessor.java:128)
12:11:58     at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1003)
12:11:58     at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:931)

I saw several threads on stack overflow and gitter chats about it but most of them are because of kafka connector issue.
In my case I am not using kafka in my project.
Is there any way I can reproduce it or get in to depth on understanding why am I seeing it ?
PS: It doesn't do any harm, just polluting the logs :)

Marcos Barbero
@marcosbarbero
Nov 28 2018 19:54
Hi @chintanb maybe something to check out on https://gitter.im/spring-cloud/spring-cloud-stream?
Spencer Gibb
@spencergibb
Nov 28 2018 19:55
:+1:
Chintan Barad
@chintanb
Nov 28 2018 19:59
Sure, I will post the question there, thanks :+1:
Marcos Barbero
@marcosbarbero
Nov 28 2018 20:00
:thumbsup:
pradeepkusingh
@pradeepkusingh
Nov 28 2018 23:48
@marcosbarbero I am running it on PCF..
@OlgaMaciaszek eureka.instance.leaseRenewalIntervalInSeconds is default