io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.

GitHub | jstrachan | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.net.UnknownServiceException

    CLEARTEXT communication not enabled for client

    at okhttp3.internal.connection.RealConnection.connect()
  2. okhttp3.internal.connection
    ConnectInterceptor.intercept
    1. okhttp3.internal.connection.RealConnection.connect(RealConnection.java:98)
    2. okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193)
    3. okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)
    4. okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)
    5. okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    5 frames
  3. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  4. okhttp3.internal.cache
    CacheInterceptor.intercept
    1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
    1 frame
  5. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
    6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    7 frames
  6. io.fabric8.openshift
    OpenShiftOAuthInterceptor.intercept
    1. io.fabric8.openshift.client.internal.OpenShiftOAuthInterceptor.intercept(OpenShiftOAuthInterceptor.java:65)
    1 frame
  7. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  8. io.fabric8.kubernetes
    HttpClientUtils$3.intercept
    1. io.fabric8.kubernetes.client.utils.HttpClientUtils$3.intercept(HttpClientUtils.java:101)
    1 frame
  9. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  10. okhttp3
    RealCall.execute
    1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
    2. okhttp3.RealCall.execute(RealCall.java:60)
    2 frames
  11. io.fabric8.kubernetes
    BaseOperation.watch
    1. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:230)
    2. io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:416)
    3. io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.<init>(WatchConnectionManager.java:76)
    4. io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:514)
    5. io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:509)
    6. io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:58)
    6 frames
  12. io.fabric8.collector
    GitCollector.<init>
    1. io.fabric8.collector.BuildConfigWatcher.<init>(BuildConfigWatcher.java:52)
    2. io.fabric8.collector.git.GitCollector.<init>(GitCollector.java:54)
    2 frames
  13. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  14. Weld Implementation
    ProxyMethodHandler.getInstance
    1. org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:119)
    2. org.jboss.weld.injection.ConstructorInjectionPoint.invokeAroundConstructCallbacks(ConstructorInjectionPoint.java:92)
    3. org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:78)
    4. org.jboss.weld.injection.producer.AbstractInstantiator.newInstance(AbstractInstantiator.java:28)
    5. org.jboss.weld.injection.producer.BasicInjectionTarget.produce(BasicInjectionTarget.java:116)
    6. org.jboss.weld.injection.producer.BeanInjectionTarget.produce(BeanInjectionTarget.java:180)
    7. org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)
    8. org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
    9. org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)
    10. org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)
    11. org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
    12. org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
    13. org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)
    13 frames
  15. io.fabric8.collector
    GitCollector$Proxy$_$$_WeldClientProxy.toString
    1. io.fabric8.collector.git.GitCollector$Proxy$_$$_WeldClientProxy.toString(Unknown Source)
    1 frame
  16. io.fabric8.cdi
    EagerCDIExtension.afterDeploymentValidation
    1. io.fabric8.cdi.eager.EagerCDIExtension.afterDeploymentValidation(EagerCDIExtension.java:42)
    1 frame
  17. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  18. Weld Implementation
    WeldBootstrap.validateBeans
    1. org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
    2. org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
    3. org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313)
    4. org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:125)
    5. org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291)
    6. org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269)
    7. org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)
    8. org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
    9. org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:160)
    10. org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
    11. org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
    12. org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
    13. org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
    14. org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:449)
    15. org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
    15 frames
  19. Weld SE (Core)
    StartMain.main
    1. org.jboss.weld.environment.se.Weld.initialize(Weld.java:590)
    2. org.jboss.weld.environment.se.StartMain.go(StartMain.java:44)
    3. org.jboss.weld.environment.se.StartMain.main(StartMain.java:53)
    3 frames