lsergio commented on issue #5758:
URL: https://github.com/apache/camel-k/issues/5758#issuecomment-2284146763

   Some interesting info:
   I bash'ed into an image that is failing and searched for the 
`TrustedProxyCheckPartConverter` class in the depency jar files:
   ```
   root@369fc154db17:/deployments/dependencies/lib/main# grep 
TrustedProxyCheckPartConverter *.jar
   grep: io.quarkus.quarkus-vertx-http-3.2.9.Final.jar: binary file matches
   ```
   Than I deleted this jar file and was able to start the application with:
   ```
   cd /deployments
   java -Xmx512m -cp 
./resources:/etc/camel/application.properties:/etc/camel/resources:/etc/camel/resources.d/_configmaps:/etc/camel/resources.d/_secrets:/etc/camel/sources/main.yaml:dependencies/*:dependencies/app/*:dependencies/lib/boot/*:dependencies/lib/main/*:dependencies/quarkus/*
 io.quarkus.bootstrap.runner.QuarkusEntryPoint
   ```
   Comparing to an image built for runtime 3.8.1, I don't see the vertx-http 
library in the dependencies library.
   
   
   Now I replaced the quartz component with rest and did the same checks:
   - The 3.2.3 image had the jar file that caused the problem, but still 
doesn't fail.
   ```
   root@7e58ec6c4e7a:/deployments/dependencies/lib/main# grep 
TrustedProxyCheckPartConverter *.jar
   grep: io.quarkus.quarkus-vertx-http-3.2.9.Final.jar: binary file matches
   ```
   
   - The 3.8.1 has the same jar file in a different version:
   ```
   root@f410ae097b31:/deployments/dependencies/lib/main# grep 
TrustedProxyCheckPartConverter *.jar
   grep: io.quarkus.quarkus-vertx-http-3.8.3.jar: binary file matches
   ```
   
   Now I deleted all my integration kits and created a single integration with 
quartz and camel-k-runtime 3.2.3. The integration started successfully and I 
don't see the vertx-http dependency.
   
   It looks like this is related to incremental builds. If I build a rest and a 
quartz integration at the same time, and the rest one builds first, the quartz 
image comes up with some inconsistency in the jar files.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to