-
Bug
-
Resolution: Unresolved
-
Major
-
3.27.0.GA
-
None
-
False
-
-
False
-
-
-
-
Moderate
-
0
-
+
When using BindToRegistry it is calling twice with the first time having uninitialized injected values for quarkus-bom 3.27.0.redhat-00002.This is a breaking change as it causes an exception when the config is null instead of populated. I have attached an example that counts the number of calls to the bind function. Below is what occurs for version 3.27.0.redhat-00002 of quarkus-bom:
2025-12-01 11:40:01,631 INFO [tes.TestRoute] (Quarkus Main Thread) Binding TestProcess instance number: 1 2025-12-01 11:40:01,631 INFO [tes.TestRoute] (Quarkus Main Thread) Config is null 2025-12-01 11:40:01,815 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (Quarkus Main Thread) Apache Camel Quarkus 3.27.0.redhat-00002 is starting 2025-12-01 11:40:01,818 INFO [org.apa.cam.mai.MainSupport] (Quarkus Main Thread) Apache Camel (Main) 4.14.0.redhat-00009 is starting 2025-12-01 11:40:01,834 INFO [org.apa.cam.mai.ProfileConfigurer] (Quarkus Main Thread) The application is starting with profile: dev 2025-12-01 11:40:01,873 INFO [tes.TestRoute] (Quarkus Main Thread) Binding TestProcess instance number: 2 2025-12-01 11:40:01,874 INFO [tes.TestRoute] (Quarkus Main Thread) Config someProperty: default-value
Below is what occurs for version 3.20.3.redhat-00006 of quarkus-bom (This is the expected behaviour):
2025-12-01 11:32:11,373 INFO [org.apa.cam.mai.MainSupport] (Quarkus Main Thread) Apache Camel (Main) 4.10.3.redhat-00030 is starting 2025-12-01 11:32:11,380 INFO [org.apa.cam.mai.ProfileConfigurer] (Quarkus Main Thread) The application is starting with profile: dev 2025-12-01 11:32:11,425 INFO [tes.TestRoute] (Quarkus Main Thread) Binding TestProcess instance number: 1 2025-12-01 11:32:11,425 INFO [tes.TestRoute] (Quarkus Main Thread) Config someProperty: default-value