JKrehling commented on issue #1734:
URL: 
https://github.com/apache/camel-kafka-connector/issues/1734#issuecomment-3494573684

   Ok this does appear to have fixed it for me.  I don't have a great way of 
building this project and importing it so i deleted the apicurio jars and 
replaced them from my parent mvn and moved them in.  I used a few of these 
because I was getting complaints about a missing class
   
   `2025-11-05 22:58:10 ERROR [main] ReflectionScanner:159 - Failed to discover 
Converter in 
/opt/kafka/plugins/camel-azure-storage-blob-append-sink-kafka-connector: Unable 
to instantiate ExtJsonConverter: Failed to invoke plugin constructor
   java.lang.reflect.InvocationTargetException: null
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method) ~[?:?]
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
 ~[?:?]
        at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[?:?]
        at 
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
 ~[?:?]
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
        at 
org.apache.kafka.connect.runtime.isolation.ReflectionScanner.versionFor(ReflectionScanner.java:75)
 ~[connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.ReflectionScanner.getPluginDesc(ReflectionScanner.java:157)
 [connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.ReflectionScanner.scanPlugins(ReflectionScanner.java:89)
 [connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.PluginScanner.scanUrlsAndAddPlugins(PluginScanner.java:79)
 [connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.PluginScanner.discoverPlugins(PluginScanner.java:67)
 [connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.Plugins.initLoaders(Plugins.java:92) 
[connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.Plugins.<init>(Plugins.java:76) 
[connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.runtime.isolation.Plugins.<init>(Plugins.java:65) 
[connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.cli.AbstractConnectCli.startConnect(AbstractConnectCli.java:121)
 [connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.cli.AbstractConnectCli.run(AbstractConnectCli.java:95) 
[connect-runtime-4.0.0.jar:?]
        at 
org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:112)
 [connect-runtime-4.0.0.jar:?]
   Caused by: java.lang.NoClassDefFoundError: io/apicurio/rest/client/auth/Auth
        at 
io.apicurio.registry.serde.SchemaResolverConfigurer.<init>(SchemaResolverConfigurer.java:46)
 ~[?:?]
        at 
io.apicurio.registry.utils.converter.ExtJsonConverter.<init>(ExtJsonConverter.java:70)
 ~[?:?]
        at 
io.apicurio.registry.utils.converter.ExtJsonConverter.<init>(ExtJsonConverter.java:66)
 ~[?:?]
        ... 16 more
   `
   Since i wasn't sure where it was i just added 
apicurio-common-rest-client-auth and the jdk one manually and moved them in to 
test.  Not sure why mvn wasn't pulling the child dependencies in but im not 
very familiar with how this is built. 
   
   
                <dependency>
                        <groupId>io.apicurio</groupId>
                        
<artifactId>apicurio-registry-utils-converter</artifactId>
                        <version>2.6.13.Final</version>
                </dependency>
                <dependency>
                        <groupId>io.apicurio</groupId>
                        <artifactId>apicurio-registry-rest-client</artifactId>
                        <version>1.3.2.Final</version>
                </dependency>
                <dependency>
                        <groupId>io.apicurio</groupId>
                        
<artifactId>apicurio-registry-serdes-avro-serde</artifactId>
                        <version>2.6.13.Final</version>
                </dependency>
                <dependency>
                        <groupId>io.apicurio</groupId>
                        
<artifactId>apicurio-registry-serdes-jsonschema-serde</artifactId>
                        <version>2.6.13.Final</version>
                </dependency>
                <!-- 
https://mvnrepository.com/artifact/io.apicurio/apicurio-common-rest-client-jdk 
-->
                <dependency>
                        <groupId>io.apicurio</groupId>
                        <artifactId>apicurio-common-rest-client-jdk</artifactId>
                        <version>0.1.18.Final</version>
                </dependency>
                <dependency>
                        <groupId>io.apicurio</groupId>
                        
<artifactId>apicurio-common-rest-client-auth</artifactId>
                        <version>0.0.8.Final</version> <!-- Replace with the 
compatible version -->
                </dependency>
   
   Anyways, updating this should solve the problem and I don't think 4.0 was 
the root cause as this mkset was removed earlier and upgrading to 3.8 or 3.9 I 
expect would have caused me the same problem.  
   
   It looks like theres only one reference to the apicurio version in the 
parent pom.  
   


-- 
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]

Reply via email to