Are you using fastjson as the default serialization protocol there? Say by 
using ‘dubbo-serialization-fastjson’?

I think the the exception happened on the provider side when trying to 
deserialize raw json data to java bean. Would you please set a breakpoint at 
the following place to try to debug and see the exact type of the second 
argument ’type’?

  FastjsonObjectInput#readObject(Class<T> cls, Type type) 

I guess it’s because the autoType feature has been disabled in the latest 
several fastjson releases for security reasons. 

Jun

> On Apr 8, 2022, at 11:20 PM, Daniel SAWAN <danielsa...@gmail.com> wrote:
> 
> client side error :
> Caused by: org.apache.dubbo.remoting.RemotingException:
> com.alibaba.fastjson.JSONException: autoType is not support.
> java.lang.ClassCastException
> 
> Seems like instead of sending a List<User> dubbo client is sending a
> List<JSONObject> to Dubbo server.

Reply via email to