-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
NPE when running extension tests when depending on the quarkus-kubernetes-deployment #15555
Comments
/cc @geoand |
I am pretty sure we used to not run the Kubernetes steps when in test-mode - exactly for reasons like this. |
Definitely not intentionally |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Mar 9, 2021
In tests, various Build Items are population with the proper values (like the output target), so it's best to not run the Kubernetes manifest generation at all in order to avoid getting NPEs Fixes: quarkusio#15555
#15565 properly disables the manifest generation when running tests |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Mar 9, 2021
In tests, various Build Items are population with the proper values (like the output target), so it's best to not run the Kubernetes manifest generation at all in order to avoid getting NPEs Fixes: quarkusio#15555
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Mar 9, 2021
In tests, various Build Items are population with the proper values (like the output target), so it's best to not run the Kubernetes manifest generation at all in order to avoid getting NPEs Fixes: quarkusio#15555
iocanel
added a commit
that referenced
this issue
Mar 9, 2021
Make disablement of k8s manifest generation in tests declarative
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.kubernetes.deployment.VanillaKubernetesProcessor#createDecorators threw an exception: java.lang.NullPointerException
at io.quarkus.kubernetes.deployment.KubernetesCommonHelper.createProject(KubernetesCommonHelper.java:82)
at io.quarkus.kubernetes.deployment.VanillaKubernetesProcessor.createDecorators(VanillaKubernetesProcessor.java:102)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Expected behavior
No NPE or an actual error message that explains what's going on and how to fix the issue :)
Actual behavior
An NPE that doesn't really help figure out what's wrong.
To Reproduce
See https://github.com/quarkiverse/quarkus-operator-sdk/runs/2060346668?check_suite_focus=true#step:6:3050
The text was updated successfully, but these errors were encountered: