-
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
java.lang.ClassCastException when upgrading from 2.16.0.Final to 2.16.1.Final #30850
Comments
Can you share the configuration you're using? |
that would be:
|
Looks like a dekotate issue. @Sgitario we should probably add some kind of test in Quarkus to make sure this never happens again |
We already have tests to cover this scenario. Also, are you adding some properties when running Maven? I could not find any in the Jenkins logs though :/ |
We certainly have tests, but something is obviously wrong in this case. |
Indeed |
command line:
nothing quarkus specific here Trying to get quick reproducer |
Thanks To give more information, the dekorate version is the same for 2.16.0.Final and 2.16.1.Final. |
ok. cannot reproduce as well ... |
@radtriste can this be closed? |
still having an issue here ... but cannot reproduce ... |
Could it be a Filesystem issue on Jenkins ? |
I mean reading the properties ? |
The issue is happening really on 3 apps and not the other. But the container configuration is on almost all examples |
is there a chance of something be pulling and older version of Quarkus and, maybe the dekorate dep? |
dekorate-core and docker-annotations are both in version 3.2.0 |
So far I tried different hypothesis on why it fails on Jenkins:
If you want to help, here are some links (Red Hat internal): |
I took another look into this issue and there is something else that rings a bell to me: why the docker build is triggered? As far as I see, you're only using the container-image-jib extension and this is only enabled when using the "container" profile. After digging a bit on this, I found out that the To continue with, by default the We need to fix this issue in Quarkus or in Dekorate. Also, I'm trying to find a quick workaround, but if we exclude the
I'm not sure if you can somehow remove all the properties that starts with |
This pull request removes the deprecated properties: - `quarkus.kubernetes.expose` -> `quarkus.kubernetes.ingress.expose` - `quarkus.openshift.expose` -> `quarkus.openshift.route.expose` - `quarkus.kubernetes.host` -> `quarkus.kubernetes.ingress.host` - `quarkus.openshift.host` -> `quarkus.openshift.route.host` - `quarkus.kubernetes.group` -> `quarkus.kubernetes.part-of` - `quarkus.openshift.group` -> `quarkus.openshift.part-of` Plus, properties with a prefix won't be used anylonger. For example, before these changes we could add `kubernetes.name` and this property will be mapped to `quarkus.kubernetes.name`. After these changes, we're not going to do this anylonger, to avoid issues like quarkusio#30850.
FYI: This issue is going to be fixed by #30977. but this pull request cannot be backported to 2.16 because it has breaking changes. Therefore, let me know if you managed to address the issue by either moving the |
@Sgitario I'm releasing 2.16.2.Final as we speak and there will be more 2.16 micros for sure. So please fix it in 2.16 too if you can. |
Here you have: #30992 |
Let me know when it is released or at least merged. |
in fact, @Sgitario I am running directly with your branch to check this was the fix :) |
Great! Let me know if it was ok! |
Should be fixed in #30992 |
Maybe of interest, I have CI env var named I don't use docker-annotation in the project and it's indeed a good idea to get rid of it from the ground up, but I wonder what would be the long term fix. I guess the generated adapter in dekorate should also not assume the type of the value is what it expects especially with so common variable name. |
@Sgitario not sure if you have seen this one ^. I think we could close the issue but maybe there is more to it? |
I think we can close it as it's already fixed in the main branch and in 2.16. |
Many thanks all!! |
or is it part of 2.16.4 ? (could not get the information) |
Describe the bug
After upgrading to Quarkus 2.16.1 this issue started to happen:
Expected behavior
No issues when upgrading from 2.16.0.Final to 2.16.1.Final
Actual behavior
This seems to be a breaking change that we would not expect to see in a minor release.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: