Skip to content
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

ERROR - Plugin class loader for connector: was not found. #118

Closed
valdar opened this issue Apr 3, 2020 · 5 comments
Closed

ERROR - Plugin class loader for connector: was not found. #118

valdar opened this issue Apr 3, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@valdar
Copy link
Member

valdar commented Apr 3, 2020

Tests logs have this error:

2020-04-03 17:10:52,295 [main           ] ERROR org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader - Plugin class loader for connector: 'org.apache.camel.kafkaconnector.CamelSinkConnector' was not found. Returning: org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader@78aa7b77

it seems to

indicates that the connector is getting loaded in the same classloader as the connect worker, probably because the connector is in the Kafka lib directory. I would suggest moving the connector out of that directory to avoid this exception and have it loaded only through the plugin.path instead.
(see confluentinc/kafka-connect-jdbc#766)

it seems not to be an issue for the tests themselves, still better to investigate.

@valdar valdar added the bug Something isn't working label Apr 3, 2020
@valdar
Copy link
Member Author

valdar commented Apr 3, 2020

@orpiske any idea on this one?

@orpiske
Copy link
Contributor

orpiske commented Apr 3, 2020

@valdar I think that makes sense and it goes in line with the warnings I saw when building the containers for this. It doesn't seem to affect the test, but it would be better and safer not to have it. I will have time next week and will take a look at how we can get rid of it.

@orpiske
Copy link
Contributor

orpiske commented Apr 3, 2020

@valdar it might be a tricky one to solve, though. I think we will need to find a way to isolate the embedded runner from the rest of the test code so that the runner itself is not on the same class loader. I don't really know how this black magic would work, so I'll have to research.

@valdar
Copy link
Member Author

valdar commented Apr 3, 2020

@orpiske tnx! Might be on the same line of #24

orpiske added a commit to orpiske/camel-kafka-connector that referenced this issue Apr 10, 2020
orpiske added a commit to orpiske/camel-kafka-connector that referenced this issue Apr 10, 2020
orpiske added a commit to orpiske/camel-kafka-connector that referenced this issue Apr 10, 2020
@valdar
Copy link
Member Author

valdar commented Apr 22, 2020

fixed with #138

@valdar valdar closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants