记XXL-JOB Integer cannot be cast to com.xxl.rpc.remoting.net.params.XxlRpcResponse
问题:java.lang.ClassCastException: java.lang.Integer cannot be cast to com.xxl.rpc.remoting.net.params.XxlRpcResponse
这是什么狗屁错误,完全看不懂,打断点也看不懂.....
根据定位过去,报错就是这行代码XxlRpcResponse xxlRpcResponse = (XxlRpcResponse)this.serializer.deserialize(responseBytes, XxlRpcResponse.class);这里integer转XxlRpcResponse。奇了个怪。为啥呢。 byte[] responseBytes = ByteBufUtil.getBytes(msg.content());上面有这样一句代码,查看msg的值,发现status是400。em,没调通。什么情况,http调用不通?
大胆的猜想,可能是网络的问题之类的吧。于是就有了以下的命令:
再次执行xxl-job调度就正确了。