You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot invoke "java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "io.fabric8.kubernetes.api.model.apps.StatefulSetStatus.getReadyReplicas()" is null"
#502
Closed
mickaelbaron opened this issue
Sep 25, 2024
· 0 comments
· Fixed by #505
During the creation of an Onyxia service from an on-premise instance, the following exception is repeatedly raised until the process completes. The logs are generated multiple times by the Onyxia API pod.
The relative exception
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "io.fabric8.kubernetes.api.model.apps.StatefulSetStatus.getReadyReplicas()" is null at fr.insee.onyxia.api.services.impl.HelmReleaseHealthResolver.checkHealth(HelmReleaseHealthResolver.java:68) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmReleaseHealthResolver.checkHelmReleaseHealth(HelmReleaseHealthResolver.java:33) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.getServiceFromRelease(HelmAppsService.java:556) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.getHelmApp(HelmAppsService.java:307) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.lambda$getUserServices$0(HelmAppsService.java:200) ~[classes/:v3.0.0] at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[na:na] at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[na:na] at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Unknown Source) ~[na:na] at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractTask.compute(Unknown Source) ~[na:na] at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[na:na]
Note, I checked the content of StatefulSet resource and status.readyReplicas is well existing.
Thx
The text was updated successfully, but these errors were encountered:
Hi,
During the creation of an Onyxia service from an on-premise instance, the following exception is repeatedly raised until the process completes. The logs are generated multiple times by the Onyxia API pod.
The relative exception
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "io.fabric8.kubernetes.api.model.apps.StatefulSetStatus.getReadyReplicas()" is null at fr.insee.onyxia.api.services.impl.HelmReleaseHealthResolver.checkHealth(HelmReleaseHealthResolver.java:68) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmReleaseHealthResolver.checkHelmReleaseHealth(HelmReleaseHealthResolver.java:33) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.getServiceFromRelease(HelmAppsService.java:556) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.getHelmApp(HelmAppsService.java:307) ~[classes/:v3.0.0] at fr.insee.onyxia.api.services.impl.HelmAppsService.lambda$getUserServices$0(HelmAppsService.java:200) ~[classes/:v3.0.0] at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[na:na] at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[na:na] at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Unknown Source) ~[na:na] at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Unknown Source) ~[na:na] at java.base/java.util.stream.AbstractTask.compute(Unknown Source) ~[na:na] at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[na:na] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[na:na]
Note, I checked the content of StatefulSet resource and
status.readyReplicas
is well existing.Thx
The text was updated successfully, but these errors were encountered: