You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/03/31 13:52:18 UTC

[GitHub] [rocketmq-connect] mz0113 opened a new issue #39: kafka-connect插件在maintainTaskState时候,因为类加载器问题导致run不起来

mz0113 opened a new issue #39:
URL: https://github.com/apache/rocketmq-connect/issues/39


   ![image](https://user-images.githubusercontent.com/42512469/161071098-9976499f-9ebb-48e0-b978-823b238fc97a.png)
   
   如图画框的部分,Future future = taskExecutor.submit(workerSourceTask); 提交到线程池后,此时线程池的类加载器是AppclassLoader,而不是pluginClassLoader,会导致WorkerSourceTask 的run方法中在启动kafkaconsumer时候报错,我报的时候加载key和value的反序列化类错误了。这个类得用pluginClassLoader加载而不能用appClassLoader加载。


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-connect] odbozhou commented on issue #39: kafka-connect插件在maintainTaskState时候,因为类加载器问题导致run不起来

Posted by GitBox <gi...@apache.org>.
odbozhou commented on issue #39:
URL: https://github.com/apache/rocketmq-connect/issues/39#issuecomment-1085545442


   最新代码已经解决了这个问题。
   因为升级了connect api,kafka connector需要适配最新的api,你对这个感兴趣吗?可以提个pr适配一下kafka connector
   https://github.com/openmessaging/openconnect/pull/37


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org