Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null #186

Open
bidonmegale opened this issue Jun 26, 2017 · 1 comment

Comments

@bidonmegale
Copy link

Hello all,

I am try to run this sample but I got those error when access the ribbon service in kubernetes:

kubectl get services:
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-hystrix 10.0.0.162 80:32210/TCP 6m
hello-ribbon 10.0.0.26 80:32199/TCP 6m
kubernetes 10.0.0.1 443/TCP 7m

Url: http://192.168.99.100:32199/hello

if I try access br hello-kystrix services its works fine.

I tryed google about those error, but I got no response.

Someone has any idea about what those error??

Thanks,

HTTP ERROR 503

Problem accessing /hello. Reason:

Service Unavailable

Caused by:

org.eclipse.jetty.servlet.ServletHolder$1: java.lang.RuntimeException: java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:575)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:632)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:477)
at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:769)
at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:754)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1048)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:118)
at com.netflix.ribbon.transport.netty.http.LoadBalancingHttpClient$Builder.build(LoadBalancingHttpClient.java:180)
at com.netflix.ribbon.transport.netty.RibbonTransport.newHttpClient(RibbonTransport.java:151)
at com.netflix.ribbon.RibbonTransportFactory.newHttpClient(RibbonTransportFactory.java:51)
at com.netflix.ribbon.http.HttpResourceGroup.(HttpResourceGroup.java:73)
at com.netflix.ribbon.http.HttpResourceGroup$Builder.build(HttpResourceGroup.java:61)
at io.fabric8.kubeflix.examples.helloribbon.HelloRibbonServlet.(HelloRibbonServlet.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2341)
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1306)
at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1193)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:593)
... 26 more
Caused by: java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:131)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:116)
... 41 more
Caused by: java.lang.NullPointerException
at io.fabric8.kubeflix.ribbon.KubernetesServerList.initWithNiwsConfig(KubernetesServerList.java:66)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:110)
... 43 more
Caused by:

java.lang.RuntimeException: java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:118)
at com.netflix.ribbon.transport.netty.http.LoadBalancingHttpClient$Builder.build(LoadBalancingHttpClient.java:180)
at com.netflix.ribbon.transport.netty.RibbonTransport.newHttpClient(RibbonTransport.java:151)
at com.netflix.ribbon.RibbonTransportFactory.newHttpClient(RibbonTransportFactory.java:51)
at com.netflix.ribbon.http.HttpResourceGroup.(HttpResourceGroup.java:73)
at com.netflix.ribbon.http.HttpResourceGroup$Builder.build(HttpResourceGroup.java:61)
at io.fabric8.kubeflix.examples.helloribbon.HelloRibbonServlet.(HelloRibbonServlet.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2341)
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1306)
at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1193)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:593)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:477)
at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:769)
at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:754)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1048)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:131)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:116)
... 41 more
Caused by: java.lang.NullPointerException
at io.fabric8.kubeflix.ribbon.KubernetesServerList.initWithNiwsConfig(KubernetesServerList.java:66)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:110)
... 43 more
Caused by:

java.lang.RuntimeException: Exception while initializing NIWSDiscoveryLoadBalancer:hello-hystrix, niwsClientConfig:ClientConfig:ConnIdleEvictTimeMilliSeconds:30000, ProxyHost:null, VipAddress:null, PrimeConnectionsClassName:com.netflix.niws.client.http.HttpPrimeConnection, TrustStorePassword:null, IsClientAuthRequired:false, ClientClassName:com.netflix.niws.client.http.RestClient, EnableConnectionPool:true, EnableGZIPContentEncodingFilter:false, EnableZoneAffinity:false, SendBufferSize:null, KeyStore:null, ConnectionManagerTimeout:2000, RequestIdHeaderName:null, UseIPAddrForServer:false, MaxTotalHttpConnections:200, PoolMaxThreads:200, AppName:null, MaxAutoRetries:0, PoolKeepAliveTimeUnits:SECONDS, IsHostnameValidationRequired:null, NIWSServerListClassName:io.fabric8.kubeflix.ribbon.KubernetesServerList, PrimeConnectionsURI:/, NFLoadBalancerPingInterval:null, OkToRetryOnAllOperations:false, NFLoadBalancerMaxTotalPingTime:null, MaxRetriesPerServerPrimeConnection:9, RequestSpecificRetryOn:null, ReceiveBufferSize:null, StaleCheckingEnabled:null, NFLoadBalancerClassName:com.netflix.loadbalancer.ZoneAwareLoadBalancer, MaxConnectionsPerHost:50, KeyStorePassword:null, ConnectionCleanerRepeatInterval:30000, RulePredicateClasses:null, ProxyPort:null, ServerListRefreshInterval:null, ServerDownFailureLimit:null, VipAddressResolverClassName:com.netflix.client.SimpleVipAddressResolver, ForceClientPortConfiguration:null, DeploymentContextBasedVipAddresses:null, EnableMarkingServerDownOnReachingFailureLimit:null, ServerDownStatWindowInMillis:null, Linger:null, CustomSSLSocketFactoryClassName:null, EnableZoneExclusivity:false, Version:null, MaxHttpConnectionsPerHost:50, InitializeNFLoadBalancer:null, BackoffTimeout:null, GZipPayload:null, PrioritizeVipAddressBasedServers:true, PoolMinThreads:1, MaxAutoRetriesNextServer:1, PoolKeepAliveTime:900, NIWSServerListFilterClassName:null, MinPrimeConnectionsRatio:1.0, TrustStore:null, listOfServers:, SecurePort:null, ServerListUpdaterClassName:null, TargetRegion:null, ReadTimeout:5000, ConnectionPoolCleanerTaskEnabled:true, IsSecure:null, Port:7001, IgnoreUserTokenInConnectionPoolForSecureClient:null, FollowRedirects:false, MaxTotalConnections:200, ConnectTimeout:2000, NFLoadBalancerPingClassName:com.netflix.loadbalancer.DummyPing, MaxTotalTimeToPrimeConnections:30000, EnablePrimeConnections:false, NFLoadBalancerRuleClassName:com.netflix.loadbalancer.AvailabilityFilteringRule
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:131)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:116)
at com.netflix.ribbon.transport.netty.http.LoadBalancingHttpClient$Builder.build(LoadBalancingHttpClient.java:180)
at com.netflix.ribbon.transport.netty.RibbonTransport.newHttpClient(RibbonTransport.java:151)
at com.netflix.ribbon.RibbonTransportFactory.newHttpClient(RibbonTransportFactory.java:51)
at com.netflix.ribbon.http.HttpResourceGroup.(HttpResourceGroup.java:73)
at com.netflix.ribbon.http.HttpResourceGroup$Builder.build(HttpResourceGroup.java:61)
at io.fabric8.kubeflix.examples.helloribbon.HelloRibbonServlet.(HelloRibbonServlet.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2341)
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1306)
at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1193)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:593)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:477)
at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:769)
at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:754)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1048)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at io.fabric8.kubeflix.ribbon.KubernetesServerList.initWithNiwsConfig(KubernetesServerList.java:66)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:110)
... 43 more
Caused by:

java.lang.NullPointerException
at io.fabric8.kubeflix.ribbon.KubernetesServerList.initWithNiwsConfig(KubernetesServerList.java:66)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.DynamicServerListLoadBalancer.initWithNiwsConfig(DynamicServerListLoadBalancer.java:110)
at com.netflix.client.ClientFactory.instantiateInstanceWithClientConfig(ClientFactory.java:205)
at com.netflix.loadbalancer.LoadBalancerBuilder.buildLoadBalancerFromConfigWithReflection(LoadBalancerBuilder.java:116)
at com.netflix.ribbon.transport.netty.http.LoadBalancingHttpClient$Builder.build(LoadBalancingHttpClient.java:180)
at com.netflix.ribbon.transport.netty.RibbonTransport.newHttpClient(RibbonTransport.java:151)
at com.netflix.ribbon.RibbonTransportFactory.newHttpClient(RibbonTransportFactory.java:51)
at com.netflix.ribbon.http.HttpResourceGroup.(HttpResourceGroup.java:73)
at com.netflix.ribbon.http.HttpResourceGroup$Builder.build(HttpResourceGroup.java:61)
at io.fabric8.kubeflix.examples.helloribbon.HelloRibbonServlet.(HelloRibbonServlet.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2341)
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1306)
at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1193)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:593)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:477)
at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:769)
at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:754)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1048)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)

@bidonmegale
Copy link
Author

Apply the pull-request "NullPointerException while getting list of services has been fixed." fix those problem.

Is it stable to use in production mode?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant