You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/10 11:44:19 UTC

[GitHub] [dubbo] zcbbpo opened a new issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

zcbbpo opened a new issue #9765:
URL: https://github.com/apache/dubbo/issues/9765


   Hi, The telnet dubbo will throw class cast exception
   
   ### Environment
   
   * Dubbo version: 2.7.13
   * Operating System version: mac os 12.2
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. enable qos
   2. open cmd and type telnet ip port
   3. type ls
   The console display class cast exception
   ![image](https://user-images.githubusercontent.com/54526829/157654979-f115431d-fbb8-42f3-97a8-5d51e32a793c.png)
   
   
   
   I have debug and see the source _code:
   org.apache.dubbo.qos.command.util.ServiceCheckUtils#isRegistered
   and find 
   ![image](https://user-images.githubusercontent.com/54526829/157654435-3191a805-6e05-4c0a-bdcb-d0208aed8432.png)
   org.apache.dubbo.registry.client.ServiceDiscoveryRegistry was not extend org.apache.dubbo.registry.support.AbstractRegistry
   So 
   `AbstractRegistry abstractRegistry = (AbstractRegistry) registries.iterator().next()`
   this code will throws class cast exception
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zcbbpo commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
zcbbpo commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1064919782


   I have copy dubbo version 3.0 code to override this method , but next method: org.apache.dubbo.qos.command.util.ServiceCheckUtils#getConsumerAddressNum
   also throw class cast exception when at telnet console type ls
   ![image](https://user-images.githubusercontent.com/54526829/157837637-eda1fd25-c821-4e00-8676-2106c90e8116.png)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1064925796


   @zcbbpo 
   Could you please submit a PR to fix this?


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zcbbpo closed issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
zcbbpo closed issue #9765:
URL: https://github.com/apache/dubbo/issues/9765


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zcbbpo commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
zcbbpo commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1064921244


   I have to modify to this , The telnet "LS" commond was work fine.
   ![image](https://user-images.githubusercontent.com/54526829/157837805-e16d3119-6ee2-426b-b4b6-dea3087a524e.png)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] chickenlj commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1066380886


   > @CrazyHZM Could you please help review and check for this [PR](https://github.com/apache/dubbo/pull/9769)
   
   Please submit PR against the master branch. Better to only add one `if (instanceof)` check.


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zcbbpo commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
zcbbpo commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1064932211


   @CrazyHZM ok


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zcbbpo commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
zcbbpo commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1065015565


   @CrazyHZM Could you please help review and check for this [PR](https://github.com/apache/dubbo/pull/9769) 


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] BurningCN commented on issue #9765: ServiceCheckUtils isRegistered seem throw class cast exception

Posted by GitBox <gi...@apache.org>.
BurningCN commented on issue #9765:
URL: https://github.com/apache/dubbo/issues/9765#issuecomment-1064891635


   This issue has been fixed in the 3.0 branch #8614
   It seems that it has not been merged into master


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org