Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: master branch

Operating System version: Mac os

Java version: 1.8

Steps to reproduce this issue

org.apache.dubbo.rpc.protocol.dubbo.support.DemoService add method

String getPerson(Yee yee);

org.apache.dubbo.rpc.protocol.dubbo.support.DemoServiceImpl

@Override
public String getPerson(Yee yee) {
return yee.getAddress();
}

public class Yee implements Serializable {
private String address;
}

public class Man implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int age;
}

org.apache.dubbo.rpc.protocol.dubbo.support.DemoServiceImpl add UT

@Test
public void testInvokeMultiJsonParamMethod2() throws RemotingException {
mockChannel = mock(Channel.class);
given(mockChannel.getAttribute("telnet.service")).willReturn(null);
given(mockChannel.getLocalAddress()).willReturn(NetUtils.toAddress("127.0.0.1:5555"));
given(mockChannel.getRemoteAddress()).willReturn(NetUtils.toAddress("127.0.0.1:20886"));

ProviderModel providerModel = new ProviderModel("org.apache.dubbo.rpc.protocol.dubbo.support.DemoService", new DemoServiceImpl(), DemoService.class);
ApplicationModel.initProviderModel("org.apache.dubbo.rpc.protocol.dubbo.support.DemoService", providerModel);
String param = "{\"address\":\"Dubbo\"}";
String result = invoke.telnet(mockChannel, "getPerson(" + param + ")");
assertTrue(result.contains("result: \"Dubbo"));
}

UT fail,Find the wrong overload method

Expected Result

Call getPerson(Yee yee)

Actual Result

Call getPerson(Man man)

Suggestion

If the overload method parameters are different in length, allowed to not pass class parameter, otherwise prompted user must pass the class parameter.

@beiwei30

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: v2.6.5

Operating System version: Linux

Java version: v1.8

Steps to reproduce this issue

use hessian protocol 2.HTTP request response exception

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

Expected Result

I hope the request succeeds.

Actual Result

What actually happens?

java.lang.IllegalArgumentException: argument type mismatch

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0]

at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:302) ~[hessian-4.0.37.jar!/:3.1.0]

at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:198) ~[hessian-4.0.37.jar!/:3.1.0]

at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:139) ~[hessian-4.0.37.jar!/:3.1.0]

at com.alibaba.dubbo.rpc.protocol.hessian.HessianProtocol$HessianHandler.handle(HessianProtocol.java:182) ~[dubbo-2.6.5.jar!/:2.6.5]

at com.alibaba.dubbo.remoting.http.servlet.DispatcherServlet.service(DispatcherServlet.java:61) ~[dubbo-2.6.5.jar!/:2.6.5]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) ~[javax.servlet-api-3.1.0.jar!/:3.1.0]

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) ~[?:?]

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) ~[?:?]

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) ~[?:?]

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) ~[?:?]

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) ~[?:?]

at org.mortbay.jetty.Server.handle(Server.java:326) ~[?:?]

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) ~[?:?]

at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) ~[?:?]

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) ~[?:?]

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) ~[?:?]

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) ~[?:?]

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) ~[?:?]

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) ~[?:?]