-
Notifications
You must be signed in to change notification settings - Fork 219
Java Operator crashing on startup after upgrading to Quarkus 1.12.1 #357
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
Comments
Can you provide the output of |
(sorry attachment didn't work for me). [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ entitlement-operator --- |
I don't see anything obvious in the dependencies… I was thinking that maybe an older version of the client had somehow snuck in but this doesn't appear to be the case. |
For now, the only way I managed to make it work in a hackish way is
Seems like the signature of the method has changed : Before : After: |
Yes, the signature has changed but I don't understand why that's causing an issue if there are no conflicting versions of the lib in your dependencies… |
No, unfortunately it did not. |
🤔 Now that I take another look, it looks like your |
Yes, just missing the finally status line. [INFO] |
just to exclude all options - you have done a mvn clean before doing mvn quarkus:dev? just be sure its not some mixup of deps/old output . |
I've just tried using the suggested command : Besides that, another colleague of mine has the same problem (similar environment). |
Any way you could provide us with a sample repository we could use to reproduce the issue? |
Having the same behaviour. Checkouting 1.7.2-snapshot and upgrading |
|
From the dependency tree, I see that
while the sdk is compiled against 5.1.0 and I think that the customResourceDefinitions is not compatible at runtime due to signature change. The sample in the repo are compiled with 5.1.0 in the parent pom, which may force this version in the classpath. |
That's what I was thinking initially but the dependencies didn't show a conflict… |
adding
works but it downgrades kubernetes-client regarding quarkus platform latest version. Using quarkus 1.12.0 make use of 5.1.0 but then we encounter another issue
Would it be possible to release a 1.7.3 to align operator sdk on quarkus platform 1.12.1 and fabric.io 5.1.1 ? |
1.7.3 should now be available. |
Work like a charm. Thank you. |
Uh oh!
There was an error while loading. Please reload this page.
Version of the Operator SDK : 1.7.2
Platform :
The steps taken to cause the bug :
2021-03-05 10:54:05,544 ERROR [io.qua.run.boo.StartupActionImpl] (Quarkus Main Thread) Error running Quarkus: java.lang.reflect.InvocationTargetException 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.runner.bootstrap.StartupActionImpl$3.run(StartupActionImpl.java:134) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.NoSuchMethodError: 'io.fabric8.kubernetes.client.dsl.MixedOperation io.fabric8.kubernetes.client.V1ApiextensionAPIGroupDSL.customResourceDefinitions()' at io.javaoperatorsdk.operator.Operator.register(Operator.java:106) at io.javaoperatorsdk.operator.Operator.register(Operator.java:63) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) at io.javaoperatorsdk.quarkus.extension.OperatorProducer.operator(OperatorProducer.java:24) at io.javaoperatorsdk.quarkus.extension.OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.create(OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.zig:334) at io.javaoperatorsdk.quarkus.extension.OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.create(OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.zig:349) at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96) at io.quarkus.arc.impl.AbstractSharedContext.access$000(AbstractSharedContext.java:14) at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:29) at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:26) at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26) at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69) at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:26) at io.javaoperatorsdk.quarkus.extension.OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.get(OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.zig:381) at io.javaoperatorsdk.quarkus.extension.OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.get(OperatorProducer_ProducerMethod_operator_a8440c868181d0f10deca15fb7a236e1362600c2_Bean.zig:397) at com.fruit.QuarkusOperator_Bean.create(QuarkusOperator_Bean.zig:304) at com.fruit.QuarkusOperator_Bean.create(QuarkusOperator_Bean.zig:344) at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96) at io.quarkus.arc.impl.AbstractSharedContext.access$000(AbstractSharedContext.java:14) at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:29) at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:26) at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26) at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69) at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:26) at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:17) at com.fruit.QuarkusOperator_ClientProxy.arc$delegate(QuarkusOperator_ClientProxy.zig:67) at com.fruit.QuarkusOperator_ClientProxy.run(QuarkusOperator_ClientProxy.zig:126) at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:122) at io.quarkus.runtime.Quarkus.run(Quarkus.java:66) at io.quarkus.runtime.Quarkus.run(Quarkus.java:42) at com.fruit.QuarkusOperator.main(QuarkusOperator.java:26)
Quarkus libs : 1.12.1.Final
Kubernetes Client and Model libs : 5.1.1
Java Operator libs : 1.7.2
Thank you in advance for any hint.
The text was updated successfully, but these errors were encountered: