-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Qute TemplateGlobal throws error on live reload #46005
Comments
/cc @mkouba (qute) |
I cannot reproduce the problem locally. Could you try to clean all your builds? Maybe even the local Maven repository? |
I deleted the local Maven repository and i was able to reproduce it. I don't know if it's related but this is the JDK that i'm using: openjdk version "21.0.6" 2025-01-21 |
Steps to reproduce:
|
You're right and the fix introduced in #45771 was not correct. We need to find a way to assign a unique priority for application globals. |
By the way, it's kind of an ordering issue - that's why it sometimes might work and sometimes not. Bad idea of mine... |
- follows-up on quarkusio#45771 - fixes quarkusio#46005 (cherry picked from commit d85129e)
Describe the bug
I upgraded my app to the latest Quarkus version and i got the following error (it used to work)
java.lang.IllegalArgumentException: Namespace [global] may not be handled by multiple resolvers of the same priority [-999]: io.quarkiverse.renarde.util.Globals_Globals@56d489bd and gr.admin.qute.MyGlobal_Globals@45bbbc71
In my project i defined a class with @TemplateGlobal which has a dependency to Renarde which has it's own @TemplateGlobal class.
It might be related to #45771
When you start the app with
mvn quarkus:dev
it works as expected, but if you change something and trigger the live reload it will throw the error.Also, i tried a prod build and the error did not occur.
Reproducer
The text was updated successfully, but these errors were encountered: