tx-lcn icon indicating copy to clipboard operation
tx-lcn copied to clipboard

在做ACTION_HEART_CHECK的时候,传过来的msg cannot be cast to java.lang.Long

Open meetinoct opened this issue 6 years ago • 1 comments

master分支(未修改源码)

msg生成code MessageDto messageDto = new MessageDto(); messageDto.setAction(MessageConstants.ACTION_HEART_CHECK); heartCmd = new NettyRpcCmd(); heartCmd.setMsg(messageDto); heartCmd.setKey(RandomUtils.simpleKey());

yi xia以下是debug过来的数据 image

然后就报错 image

meetinoct avatar Nov 20 '19 04:11 meetinoct

如果是用的json传输,那么应该json解析时会自动解析成integer类型,从而get的时候通过MapUtil进行get,这个应该时bug吧?

meetinoct avatar Nov 23 '19 08:11 meetinoct