调度中心是2.2.0的,xxl-rpc是1.5版,下载的源码可以正常使用,自己新建一个springboot工程就一直报超时的问题,看了admin这个服务报错是:
2020-05-08 08:44:45 xxl-job-executor-sample-spring [com.xxl.rpc.remoting.net.impl.netty_http.client.NettyHttpClientHandler]-[nioEventLoopGroup-2-1]-[exceptionCaught]-[62]-[ERROR] >>>>>>>>>>> xxl-rpc netty_http client caught exception
com.xxl.rpc.util.XxlRpcException: com.caucho.hessian.io.HessianProtocolException: No classes defined at reference '64'
at com.xxl.rpc.serialize.impl.HessianSerializer.deserialize(HessianSerializer.java:52)
at com.xxl.rpc.remoting.net.impl.netty_http.client.NettyHttpClientHandler.channelRead0(NettyHttpClientHandler.java:52)
at com.xxl.rpc.remoting.net.impl.netty_http.client.NettyHttpClientHandler.channelRead0(NettyHttpClientHandler.java:22)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.caucho.hessian.io.HessianProtocolException: No classes defined at reference '64'
at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2926)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:2118)
at com.caucho.hessian.io.CollectionDeserializer.readLengthList(CollectionDeserializer.java:93)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:2088)
at com.xxl.rpc.serialize.impl.HessianSerializer.deserialize(HessianSerializer.java:49)
... 34 more
2020-05-08 08:44:45 xxl-job-executor-sample-spring [com.xxl.rpc.remoting.invoker.reference.XxlRpcReferenceBean]-[xxl-job, admin JobTriggerPoolHelper-fastTriggerPool-1836601521]-[invoke]-[248]-[INFO] >>>>>>>>>>> xxl-rpc, invoke error, address:http://192.168.0.110:9997/, XxlRpcRequestXxlRpcRequest{requestId='d6a46994-ba6c-40fb-9357-aa4c26ca8dc4', createMillisTime=1588898666275, accessToken='', className='com.xxl.job.core.biz.ExecutorBiz', methodName='run', parameterTypes=[class com.xxl.job.core.biz.model.TriggerParam], parameters=[TriggerParam{jobId=3, executorHandler='mycenterjob', executorParams='wm', executorBlockStrategy='SERIAL_EXECUTION', executorTimeout=30000, logId=268, logDateTime=1588898666198, glueType='BEAN', glueSource='', glueUpdatetime=1588836346000, broadcastIndex=0, broadcastTotal=1}], version='null'}
2020-05-08 08:44:45 xxl-job-executor-sample-spring [com.xxl.job.admin.core.trigger.XxlJobTrigger]-[xxl-job, admin JobTriggerPoolHelper-fastTriggerPool-1836601521]-[runExecutor]-[180]-[ERROR] >>>>>>>>>>> xxl-job trigger error, please check if the executor[http://192.168.0.110:9997/] is running.
com.xxl.rpc.util.XxlRpcException: xxl-rpc, request timeout at:1588898684857, request:XxlRpcRequest{requestId='d6a46994-ba6c-40fb-9357-aa4c26ca8dc4', createMillisTime=1588898666275, accessToken='', className='com.xxl.job.core.biz.ExecutorBiz', methodName='run', parameterTypes=[class com.xxl.job.core.biz.model.TriggerParam], parameters=[TriggerParam{jobId=3, executorHandler='mycenterjob', executorParams='wm', executorBlockStrategy='SERIAL_EXECUTION', executorTimeout=30000, logId=268, logDateTime=1588898666198, glueType='BEAN', glueSource='', glueUpdatetime=1588836346000, broadcastIndex=0, broadcastTotal=1}], version='null'}
at com.xxl.rpc.remoting.net.params.XxlRpcFutureResponse.get(XxlRpcFutureResponse.java:117)
at com.xxl.rpc.remoting.invoker.reference.XxlRpcReferenceBean$1.invoke(XxlRpcReferenceBean.java:242)
at com.sun.proxy.$Proxy99.run(Unknown Source)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.runExecutor(XxlJobTrigger.java:178)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.processTrigger(XxlJobTrigger.java:136)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.trigger(XxlJobTrigger.java:67)
at com.xxl.job.admin.core.thread.JobTriggerPoolHelper.lambda$addTrigger$2(JobTriggerPoolHelper.java:61)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)