Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12182

[SB2][narayana-spring-boot-recovery-controller] NoClassDefFoundError: io/fabric8/kubernetes/api/model/extensions/StatefulSet

XMLWordPrintable

    • Fuse 7.5 Sprint 54 - Interim

      In SB2 we use kubernetes-model 4.1.0 and StatefulSet class is in package https://javadoc.io/doc/io.fabric8/kubernetes-model/4.1.0/io/fabric8/kubernetes/api/model/apps/StatefulSet.html, wheareas in narayana-spring-boot recovery-controller is using old package io.fabric8.kubernetes.api.model.extensions.StatefulSet (see https://github.com/snowdrop/narayana-spring-boot/blob/2.1.1/openshift/recovery-controller/src/main/java/me/snowdrop/boot/narayana/openshift/recovery/StatefulsetRecoveryController.java#L27) which can cause such exception

      java.lang.NoClassDefFoundError: io/fabric8/kubernetes/api/model/extensions/StatefulSet
      	at me.snowdrop.boot.narayana.openshift.recovery.StatefulsetRecoveryController.periodicCheck(StatefulsetRecoveryController.java:91) ~[narayana-spring-boot-recovery-controller-2.1.1.fuse-sb2-750025-redhat-00001.jar!/:na]
      	at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_222]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_222]
      	at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_222]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_222]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_222]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_222]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_222]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_222]
      	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_222]
      

            zfeng@redhat.com Zheng Feng
            llowinge@redhat.com Lukas Lowinger
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: