Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@mickaelbaron
Copy link
Contributor

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

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

Successfully merging a pull request may close this issue.

1 participant