Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Nullpointer exception while trying to configure connector in Confluent Control Center #7

Closed
ghost opened this issue Oct 27, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2022

Hi,

i got the message
Caused by: java.lang.NullPointerException
at org.kaliy.kafka.connect.rss.config.UrlListValidator.ensureValid(UrlListValidator.java:18)
at org.apache.kafka.common.config.ConfigDef.parseForValidate(ConfigDef.java:617)
at org.apache.kafka.common.config.ConfigDef.parseForValidate(ConfigDef.java:551)
at org.apache.kafka.common.config.ConfigDef.validateAll(ConfigDef.java:542)
at org.apache.kafka.common.config.ConfigDef.validate(ConfigDef.java:525)
at org.apache.kafka.connect.connector.Connector.validate(Connector.java:144)

while trying to configure the connector initial in the Confluent Control Center. I think it trys to check for the url before i even can type it in and runs into NullpointerException (See https://github.com/kaliy/kafka-connect-rss/blob/kafka-connect-rss-0.1.0/src/main/java/org/kaliy/kafka/connect/rss/config/UrlListValidator.java) the call for
List urlsAsList = Arrays.asList(urls.split(RSS_URL_SEPARATOR));

This should be handled different to make it able to configure via Control Center.
grafik

Setup in Docker-Compose is the usual docker-compose from confluent-community version.

@kaliy
Copy link
Owner

kaliy commented Nov 8, 2022

I managed to replicate the issue and will find the root cause and fix it. Thanks for the report!

@kaliy
Copy link
Owner

kaliy commented Nov 24, 2022

The issue should be fixed now: https://github.com/kaliy/kafka-connect-rss/releases/download/kafka-connect-rss-0.1.1/kaliy-kafka-connect-rss-0.1.1.zip

Feel free to open the issue if something is still broken :)

@kaliy kaliy closed this as completed Nov 24, 2022
@ghost
Copy link
Author

ghost commented Nov 25, 2022

Thanks for fixing. Can confirm the error no longer occurs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant