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 11:21:17 UTC

[GitHub] [rocketmq-connect] mz0113 opened a new issue #38: rocketmq-connect-kafka 在被runtime的pluginClassLoader加载时候报class cast exception

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


   ![image](https://user-images.githubusercontent.com/42512469/161043529-99a784ce-f4f4-44c4-8607-7d3b9b9f8076.png)
   报错 类转型失败
   org.apache.rocketmq.connect.kafka.connector.KafkaSourceConnector 无法转型为io.openmessaging.connector.api.Connector
   
   看起来像是类加载器不同导致的问题,因为io.openmessaging.connector.api.Connector 是rutime启动时候加载的,但是KafkaSourceConnector 是 pluginClassLoader加载器加载的。
   
   请问这个怎么办?


-- 
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] mz0113 closed issue #38: rocketmq-connect-kafka 在被runtime的pluginClassLoader加载时候报class cast exception

Posted by GitBox <gi...@apache.org>.
mz0113 closed issue #38:
URL: https://github.com/apache/rocketmq-connect/issues/38


   


-- 
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 #38: rocketmq-connect-kafka 在被runtime的pluginClassLoader加载时候报class cast exception

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


   最新代码已经解决了这个问题。
   因为升级了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



[GitHub] [rocketmq-connect] mz0113 commented on issue #38: rocketmq-connect-kafka 在被runtime的pluginClassLoader加载时候报class cast exception

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


   不知道,好像是shade打包完就有问题。


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