jamesnetherton commented on issue #3621: URL: https://github.com/apache/camel-quarkus/issues/3621#issuecomment-1092730091
Turns out this is a class loading issue that only occurs with the itests. I was forced to set `quarkus.test.flat-class-path=true` in the tests to get object deserialization to work properly. It seems this is not honored (or does not work) when run on the platform. This problem only occurs at test time. When running the JAR or native application, it works fine. We can make some amendments to the Cassandra Camel component to avoid setting `quarkus.test.flat-class-path`. 1. Explicitly provide a `ClassLoader` to `CqlSessionBuilder` 2. Modify `CassandraCamelCodec` to use [`ClassLoadingAwareObjectInputStream`](https://github.com/apache/camel/blob/main/components/camel-sql/src/main/java/org/apache/camel/processor/aggregate/jdbc/ClassLoadingAwareObjectInputStream.java) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
