Skip to content

telnet issue #5939

Description

@infuq

Environment

  • Dubbo version: 2.7.4.1
  • Operating System version: macOS Catalina Version 10.15.3
  • Java version: 1.8.0_231

Steps to reproduce this issue

  1. 通过telnet调用接口如下
    方法(Method)
    public String convert7(UserInfoCondition userInfoCondition) { }
    参数(Parameter)
    public class UserInfoCondition { private List<Map<Integer, UserInfo>> userList; }
    public class UserInfo { private String accountMobile; private String userPassword; }

invoke UsesrInfoFacade.convert7({"userList":[{"1":{"accountMobile":"15052234567"}}]})
or
invoke UsesrInfoFacade.convert7({"userList":[{1:{"accountMobile":"15052234567"}}]})

提示如下错误(has a problem)
image

到底如何书写这个入参呢?(How to write the parameters)

Activity

  1. infuq commented on Mar 30, 2020

    @infuq
    Author

    尝试了很多种写法, 也指定了class, 还是失败, 不知道问题出在哪里.

  2. rj-chensiqu commented on Mar 30, 2020

    @rj-chensiqu
    Contributor

    和 #5748 应该是一个问题。 ({"userList":[{"1":{"accountMobile":"15052234567"},"class":"java.util.HashMap"}]}) 这样是可行的

  3. added a commit that references this issue on Jun 30, 2020
    bbacab0
  4. added a commit that references this issue on Jul 2, 2020
    173df9a
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