xuxueli / xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)
http://www.xuxueli.com/xxl-job/
GNU General Public License v3.0
27.51k stars 10.89k forks source link

com.xxl.rpc.util.XxlRpcException: xxl-rpc, request timeout at:1616469125063, request:XxlRpcRequest{requestId='99b4b6b9-6cbe-4002-ba1b-22d1fc209258', createMillisTime=1616469120029, accessToken='123456', className='com.xxl.job.core.biz.ExecutorBiz', methodName='run', parameterTypes=[class com.xxl.job.core.biz.model.TriggerParam], parameters=[TriggerParam{jobId=4, executorHandler='mydemoJobHandler', executorParams='', executorBlockStrategy='SERIAL_EXECUTION', executorTimeout=0, logId=703, logDateTim=1616469120018, glueType='BEAN', glueSource='', glueUpdatetime=1616468349000, broadcastIndex=0, broadcastTotal=1}], version='null'} #2341

Open Createst opened 3 years ago

Createst commented 3 years ago

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.0.2

Expected behavior

任务执行成功

Actual behavior

失败

Steps to reproduce the behavior

1.执行器配置

web port

server.port=9999

no web

spring.main.web-environment=false

xxl-job admin address list, such as "http://address" or "http://address01,http://address02"

xxl.job.admin.addresses=http://10.6.3.178:8088/xxl-job-admin

xxl-job, access token

xxl.job.accessToken=

xxl-job executor appname

xxl.job.executor.appname=mydemo

xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null

xxl.job.executor.address=

xxl-job executor server-info

xxl.job.executor.ip=10.6.3.178 xxl.job.executor.port=9999

xxl-job executor log-path

xxl.job.executor.logpath=/data/applogs/xxl-job/jobhandler

xxl-job executor log-retention-days

xxl.job.executor.logretentiondays=30

2.admin配置

web

server.port=8088 server.context-path=/xxl-job-admin

resources

spring.mvc.static-path-pattern=/static/** spring.resources.static-locations=classpath:/static/

freemarker

spring.freemarker.templateLoaderPath=classpath:/templates/ spring.freemarker.suffix=.ftl spring.freemarker.charset=UTF-8 spring.freemarker.request-context-attribute=request spring.freemarker.settings.number_format=0.##########

mybatis

mybatis.mapper-locations=classpath:/mybatis-mapper/*Mapper.xml

xxl-job, datasources

spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 spring.datasource.username=root spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.jdbc.Driver

spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource spring.datasource.tomcat.max-wait=10000 spring.datasource.tomcat.max-active=30 spring.datasource.tomcat.test-on-borrow=true spring.datasource.tomcat.validation-query=SELECT 1 spring.datasource.tomcat.validation-interval=30000

xxl-job email

spring.mail.host=smtp.qq.com spring.mail.port=25 spring.mail.username=xxx@qq.com spring.mail.password=xxx spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.starttls.required=true

xxl-job login

xxl.job.login.username=admin xxl.job.login.password=123456

xxl-job, access token

xxl.job.accessToken=123456

xxl-job, i18n (default empty as chinese, "en" as english)

xxl.job.i18n=

3.执行器jobhandler @JobHandler(value = "mydemoJobHandler") @Component public class DemoJobHandler extends IJobHandler {

@Override
public ReturnT<String> execute(String param) throws Exception {
    System.out.println("XXL-JOB Hello World");
    return SUCCESS;
}

}

Other information

prayjourney commented 1 year ago

我也遇到了这个问题,能注册上去,但是无法执行