Skip to content

Error when trying to use compression option with "plain-quarkus" provider #6338

@ogomezdi

Description

@ogomezdi

What happened?

As described in #camel-k > New plain-quarkus option not compatible with --compression whenever you try to apply compression option to an integration with plain-quarkus provider, it fails when trying to start as it treat the compress content as the route source without decompressing it previously.
This situation doesn't appear in default provider "quarkus".

Steps to reproduce

  1. Create a basic simple route in Java
  2. Execute command: kamel run Basic.java --compression -t camel.runtime-provider=plain-quarkus -t camel.runtime-version=3.28.4
  3. Execute command: kamel log basic and you'll get something like:
    [2] 2025-10-20 15:12:00,223 INFO [org.apa.cam.k.Runtime] (main) Apache Camel K Runtime 3.15.3 [2] 2025-10-20 15:12:00,228 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Apache Camel Quarkus 3.15.3 is starting [2] 2025-10-20 15:12:00,231 INFO [org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 4.8.5 is starting [2] 2025-10-20 15:12:00,521 INFO [org.apa.cam.k.sup.SourcesSupport] (main) Loading routes from: SourceDefinition{name='Basic', language='java', type='source', location='file:/etc/camel/sources/Basic.java', compressed='true', } [2] 2025-10-20 15:12:09,515 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.8.5 (camel-1) is starting [2] 2025-10-20 15:12:09,613 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (total:1) [2] 2025-10-20 15:12:09,613 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Started route1 (timer://java) [2] 2025-10-20 15:12:09,613 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.8.5 (camel-1) started in 97ms (build:0ms init:0ms start:97ms) [2] 2025-10-20 15:12:09,617 INFO [io.quarkus] (main) camel-k-integration 2.7.0 on JVM (powered by Quarkus 3.15.4) started in 21.100s. [2] 2025-10-20 15:12:09,619 INFO [io.quarkus] (main) Profile prod activated. [2] 2025-10-20 15:12:09,621 INFO [io.quarkus] (main) Installed features: [camel-bean, camel-core, camel-java-joor-dsl, camel-k-core, camel-k-runtime, camel-kubernetes, camel-log, camel-timer, cdi, kubernetes-client, smallrye-context-propagation, vertx] [2] 2025-10-20 15:12:10,621 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java Camel K 2.7.0.] [2] 2025-10-20 15:12:11,613 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java Camel K 2.7.0.] [2] 2025-10-20 15:12:12,613 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java Camel K 2.7.0.] [2] 2025-10-20 15:12:13,612 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java Camel K 2.7.0.]

Relevant log output

Camel K version

v.2.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions