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 2021/08/05 08:12:29 UTC

[GitHub] [dubbo] haoyann opened a new issue #8422: [3.0] Invoke `MetadataService` serialization error.

haoyann opened a new issue #8422:
URL: https://github.com/apache/dubbo/issues/8422


   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Steps to reproduce this issue
   
   1. start provider and consumer
   2. provider return `MetadataInfo`
   ![image](https://user-images.githubusercontent.com/43994656/128314936-2b517524-50ac-465d-b378-119dfea24c78.png)
   
   3. consumer received `HashMap`
   ![image](https://user-images.githubusercontent.com/43994656/128314994-637476b8-ef78-4107-8b14-c8e25c06d67c.png)
   4. error 
   ```
   java.lang.ClassCastException: java.util.HashMap cannot be cast to org.apache.dubbo.metadata.MetadataInfo
   	at org.apache.dubbo.common.bytecode.proxy0.getMetadataInfo(proxy0.java)
   	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:331)
   	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:285)
   	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:136)
   	at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.handleEvent(NacosServiceDiscovery.java:143)
   	at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.lambda$null$4(NacosServiceDiscovery.java:122)
   ```
   5. It should be caused by the serialization whitelist. I removed this change and the call is normal.  #8386
   


-- 
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] AlbumenJ closed issue #8422: [3.0] Invoke `MetadataService` serialization error.

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


   


-- 
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] AlbumenJ closed issue #8422: [3.0] Invoke `MetadataService` serialization error.

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


   


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