-
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
Failed to start quarkus, Already a codec registered with name uy.com.andi.reproducer.logic.services.bus.utils.BusMessageCodec #33458
Comments
I'll have a look |
@cescoffier @gsmet this is caused by #29560. The fix worked for Should the feature added in #29560 be limited to that Codec? |
Hi @geoand, thanks for checking this out. Looking through the change you linked to in your last comment (#29560), the associated bug report (#16103) and the reproducer ( reproducer ) and seeing that the fix in #29560 was applied to the LocalEventBusCodec which ships with Quarkus, I just went and took a look at it. I seem to understand (correct me if I am wrong) that it's not enough for the name of the codec to be unique. So a workaround for my Codec would be to just make the name unique at the instance level, correct? |
Correct |
Yes. |
👌 |
#33542 does just that |
Limit subclass codec registration to known working codecs
Fixes: quarkusio#33458 (cherry picked from commit 827dfa0)
Fixes: quarkusio#33458 (cherry picked from commit 827dfa0)
Describe the bug
When running my @QuarkusTest Quarkus fails to start due to: "java.lang.IllegalStateException: Already a codec registered with name uy.com.andi.reproducer.logic.services.bus.utils.BusMessageCodec"
Expected behavior
The application starts and the tests are run.
Actual behavior
The application fails to start
How to Reproduce?
Reproducer:
https://github.com/kahennig/reproducer
Steps to reproduce:
Output of
uname -a
orver
Linux khennig 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu123.04) OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu123.04, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.0.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29) Maven home: /home/linuxbrew/.linuxbrew/Cellar/maven/3.8.7/libexec Java version: 17.0.7, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: es_UY, platform encoding: UTF-8 OS name: "linux", version: "6.2.0-20-generic", arch: "amd64", family: "unix"
Additional information
No response
The text was updated successfully, but these errors were encountered: