blade-xxljob-admin启动报错,应该是nacos配置无法找到,请问如何定位问题?

Blade 未结 2 1132

一、该问题的重现步骤是什么?

1. 配置nacos的yaml文件,配置了DataID:blade-xxljob-admin-dev.yaml, Group:DEFAULT_GROUP,内容也填充OK。

2. 启动blade-xxljob-admin,启动后报错,报错内容如下



二、你期待的结果是什么?实际看到的又是什么?

期待admin服务正常启动,但是实际上提示Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, ${blade.datasource.job.dev.url}
而其他微服务,使用blade-dev.yaml的那套配置,启动正常

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

Nacos1.3.2  bladex 2.6 商业版

四、请提供详细的错误堆栈信息,这很重要。

2021-04-15 23:24:43.665  INFO 24663 --- [           main] c.a.n.c.c.impl.LocalConfigInfoProcessor  : LOCAL_SNAPSHOT_PATH:/Users/renyi/nacos/config

2021-04-15 23:24:43.703  INFO 24663 --- [           main] c.a.nacos.client.config.impl.Limiter     : limitTime:5.0

2021-04-15 23:24:43.736  INFO 24663 --- [           main] c.a.nacos.client.config.utils.JVMUtil    : isMultiInstance:false

2021-04-15 23:24:43.765  WARN 24663 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-xxljob-admin] & group[DEFAULT_GROUP]

2021-04-15 23:24:43.768  WARN 24663 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-xxljob-admin.yaml] & group[DEFAULT_GROUP]

2021-04-15 23:24:43.770  WARN 24663 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-xxljob-admin-dev.yaml] & group[DEFAULT_GROUP]

2021-04-15 23:24:43.772  INFO 24663 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-xxljob-admin-dev.yaml,DEFAULT_GROUP'}

2021-04-15 23:24:43.779  INFO 24663 --- [           main] com.xxl.job.admin.JobAdminApplication    : The following profiles are active: dev

2021-04-15 23:24:44.789  WARN 24663 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.

2021-04-15 23:24:44.797  WARN 24663 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.

2021-04-15 23:24:45.243  INFO 24663 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2021-04-15 23:24:45.246  INFO 24663 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2021-04-15 23:24:45.285  INFO 24663 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 23ms. Found 0 Redis repository interfaces.

2021-04-15 23:24:45.392  WARN 24663 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2021-04-15 23:24:45.903  INFO 24663 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=0965228d-69df-3377-9190-9da9f02374c3

2021-04-15 23:24:45.908  INFO 24663 --- [           main] o.s.c.a.ConfigurationClassEnhancer       : @Bean method BladePropertyConfiguration.bladePropertySourcePostProcessor is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.

2021-04-15 23:24:45.911  INFO 24663 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.

2021-04-15 23:24:45.912  INFO 24663 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.

2021-04-15 23:24:45.955  WARN 24663 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : Not found @BladePropertySource on spring bean class.

2021-04-15 23:24:45.961  INFO 24663 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.

2021-04-15 23:24:45.969  INFO 24663 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.

2021-04-15 23:24:45.977  INFO 24663 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.

2021-04-15 23:24:46.479  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

INFO: log output type is: file

INFO: log charset is: utf-8

INFO: log base dir is: /Users/renyi/logs/csp/

INFO: log name use pid is: false

2021-04-15 23:24:46.650  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$e10d2c9] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:46.659  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$555b201b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:46.668  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$30ed2b3b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:46.679  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$69d4d408] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:46.688  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:46.733  INFO 24663 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-15 23:24:47.131  WARN 24663 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2021-04-15 23:24:47.164  INFO 24663 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2021-04-15 23:24:47.165  INFO 24663 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3356 ms

2021-04-15 23:24:47.389  WARN 24663 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-04-15 23:24:47.390  INFO 24663 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-04-15 23:24:47.400  INFO 24663 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@2adc1e84

2021-04-15 23:24:47.882  INFO 24663 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-04-15 23:24:47.883  INFO 24663 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Environment :null

2021-04-15 23:24:47.884  INFO 24663 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-04-15 23:24:48.467  INFO 24663 --- [           main] o.s.b.a.e.web.ServletEndpointRegistrar   : Registered '/actuator/jolokia' to jolokia-actuator-endpoint

2021-04-15 23:24:49.057  INFO 24663 --- [           main] c.x.j.a.core.scheduler.XxlJobScheduler   : >>>>>>>>> init xxl-job admin success.

2021-04-15 23:24:49.088  WARN 24663 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-04-15 23:24:49.089  INFO 24663 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-04-15 23:24:49.098  INFO 24663 --- [ryMonitorHelper] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...

2021-04-15 23:24:49.109  INFO 24663 --- [ilMonitorHelper] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...

2021-04-15 23:24:49.110  INFO 24663 --- [LogReportHelper] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...

2021-04-15 23:24:49.117 ERROR 24663 --- [LogReportHelper] c.x.j.a.core.thread.JobLogReportHelper   : >>>>>>>>>>> xxl-job, job log report thread error:{}

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

### Error querying database.  Cause: java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, ${blade.datasource.job.dev.url}

### The error may involve com.xxl.job.admin.dao.XxlJobLogDao.findLogReport

### The error occurred while executing a query

### Cause: java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, ${blade.datasource.job.dev.url}

    at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)

    at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)

    at com.sun.proxy.$Proxy133.selectOne(Unknown Source)

    at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:159)

    at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)

    at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:93)

    at com.sun.proxy.$Proxy137.findLogReport(Unknown Source)

    at com.xxl.job.admin.core.thread.JobLogReportHelper$1.run(JobLogReportHelper.java:71)

    at java.lang.Thread.run(Thread.java:745) 


五、若有更多详细信息,请在下面提供。

2条回答
  • 按文档步骤配置一下

    (F`(W2{FG`[IXBA8WZ7MS3W.png

    回答: 2021-04-16 09:48

    blade-xxljob-admin-dev.yaml,格式要选yaml

    0 讨论(0)
  • 2021-04-16 11:14

    好的,找到原因了。已经处理。谢谢

    0 讨论(0)
提交回复