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

dubbo telnet #5748

Closed
vonzou opened this issue Feb 16, 2020 · 1 comment
Closed

dubbo telnet #5748

vonzou opened this issue Feb 16, 2020 · 1 comment

Comments

@vonzou
Copy link

vonzou commented Feb 16, 2020

dubbo telnet command,when in param is Map ,and the key of the map is number,will throw Exception:java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Environment

  • Dubbo version: all
  • Operating System version: all
  • Java version: all

Steps to reproduce this issue

  1. TELNET 127.0.0.1 20880
  2. invoke com.xxx.xxxApiService({"3":0.123})
  3. exception occurred:
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
@biyuhao
Copy link
Member

biyuhao commented Feb 25, 2020

please try this

invoke com.xxx.xxxApiService({"3":0.123, "class":"java.util.HashMap"})

specify the class type just like the UT case testOverriddenMethodWithSpecifyParamType

feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants