Skip to content

dubbo telnet  #5748

Closed
Closed

Description

@vonzou

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!

Activity

  1. biyuhao commented on Feb 25, 2020

    @biyuhao
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions