-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to instantiate AdjustPrecisionAndScale: Plugin class must have a no-args constructor, and cannot be a non-static inner class #111
Comments
Had a similar issue seting JAVA_OPTS ="-Xmx 2g -Xms 2g" on kafka connect container resolved it |
Na, that did not work. I still get the same errors. I added this ENV to my docker compose file. |
I'm having the same problem. I find the solution that @rizvnn suggested improbable.. For me, it's an issue of kafka versions.. I'm using kafka-connect-transform-common-0.1.0.58. I did some testing, and I found that it works for for kafka version 3.5.2, but not >=3.6.0, so I think the plugin might not support kafka >=3.6.0 at this time. |
Question for you all. Does the class still work? Looking at the code we have a default constructor on the static class. We do not have a default constructor on the implementation. I think we could just change the declaration of the implementation to abstract to fix it. |
Not sure if this works with newer kafka version as connect-utils uses kafka-connect-api 2.8.0. I will experiment with it. Stay tuned. |
@jcustenborder With kafka 3.7.0 and your suggested solution I get the following when using connect-utils-0.7.177.jar: java.lang.NoClassDefFoundError: com/github/jcustenborder/kafka/connect/utils/config/ValidEnum │ |
We dont use these: AdjustPrecisionAndScale transforms. We only use using AddPrefix from confluent, changeTopicCase from kafka-connect-transform-common transformers and they still seem to work even with the above errors. So it might be just a few classes that are affected. |
@jcustenborder I've updated my PRs following your suggestions: |
I also have this issue with Kafka Connect 7.6. Is there a lower version of kafka-connect-transform-common thats works with it ok ?
|
@jcustenborder @marcuslinke these warnings seem to be related and also starting to appear when we upgraded to Kafka Connect 7.7.0. This also shows that the same issues appear in the kafka-connect-json-schema plugin as well
|
Hi,
I am trying to update our connectors and transform packages to resolve security vulnerabilities, so i updated my
cp-kafka-connect-base:7.6.0
andjcustenborder/kafka-connect-transform-common:0.1.0.58
.But now when i run it i get
class must have a no-args constructor, and cannot be a non-static inner class
error for following classes:I am not using these transformers so i could ignore it. I am only using
AddPrefix,changeTopicCase
transformers.Is there a up coming release that will work with the new base image?
Full Docker file:
Full Error Log:
The text was updated successfully, but these errors were encountered: