[kafka] [apicurio] - ClassNotFoundException in dev mode with specific artifact resolver #38036
-
Hi, I develop an application with Quarkus that consume messages from Kafka encoded in Avro format. By default, in the "smallrye" library, the strategy for found the schema in the schema registry for deserialize my message is based on the topic name. When i define another class for the strategy like this one "io.apicurio.registry.serde.avro.strategy.RecordIdStrategy", i have an error of Quarkus saying that it does not found the class. Stacktrace of the error Caused by: java.lang.ClassNotFoundException: "io.apicurio.registry.serde.avro.strategy.RecordIdStrategy"
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:518)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:468)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:518)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:468)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:421)
at java.base/java.lang.Class.forName(Class.java:412)
at io.apicurio.registry.resolver.utils.Utils.loadClass(Utils.java:33) Configuration of my channel for this configuration.
I have this error when i am in dev mode with command I have the same error if a define a custom serializer like this in my application.properties
Have you got an idea of the origine of this error ? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
/cc @alesj (kafka), @cescoffier (kafka), @ozangunalp (kafka) |
Beta Was this translation helpful? Give feedback.
-
I believe you need to remove the quotes from FQCN. |
Beta Was this translation helpful? Give feedback.
I believe you need to remove the quotes from FQCN.