繁体   English   中英

Spring Cloud DataFlow组成的任务无法启动

[英]Spring Cloud DataFlow Composed Task doesn't start

我正在尝试运行SCDF组合任务。 我创建的所有组合任务都执行相同的操作:执行SQL脚本:

从类路径资源[org / springframework / cloud / task / schema-h2.sql]中执行SQL脚本`

在这一点上,执行暂停。 Start timeEnd time的SCDF仪表板的“ Executions选项卡中,我看到N/A

我正在使用Spring Cloud DataFlow 1.2.3.RELEASE和Composed Task Runner 1.0.0.RELEASE。

这是日志的输出:

2017-08-18 18:20:09.455信息828-[[main] cccConfigServicePropertySourceLocator:从以下位置的服务器获取配置: http:// localhost:8888 2017-08-18 18:20:10.528 WARN 828-[主要] cccConfigServicePropertySourceLocator:无法找到PropertySource:“ http:// localhost:8888 / composedtaskrunner -task / default ”的GET请求上的I / O错误:连接被拒绝:connect; 嵌套异常是java.net.ConnectException:连接被拒绝:connect 2017-08-18 18:20:10.530 INFO 828 --- [main] .tacComposedtaskrunnerTaskApplication:未设置活动配置文件,回退到默认配置文件:默认2017-08- 18 18:20:10.567 INFO 828-[main] scaAnnotationConfigApplicationContext:刷新org.springframework.context.annotation.AnnotationConfigApplicationContext@61a52fbd:启动日期[2017年8月18日星期五18:20:10]; 父级:org.springframework.context.annotation.AnnotationConfigApplicationContext@3b95a09c 2017-08-18 18:20:10.903 INFO 828 --- [main] osbfsDefaultListableBeanFactory:使用不同的定义覆盖bean'transactionManager'的bean定义:替换[root bean :class [null]; 范围=; 抽象= FALSE; lazyInit = FALSE; autowireMode = 3; dependencyCheck = 0; autowireCandidate = TRUE; 初级= FALSE; factoryBeanName = org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration; factoryMethodName = transactionManager的; initMethodName = NULL; destroyMethodName =(推断); 在类路径资源[org / springframework / batch / core / configuration / annotation / SimpleBatchConfiguration.class]中定义,并带有[Root bean:class [null]; 范围=; 抽象= FALSE; lazyInit = FALSE; autowireMode = 3; dependencyCheck = 0; autowireCandidate = TRUE; 初级= FALSE; factoryBeanName = org.springframework.cloud.task.configuration.SimpleTaskConfiguration; factoryMethodName = transactionManager的; initMethodName = NULL; destroyMethodName =(推断); 在类路径资源中定义[org / springframework / cloud / task / configuration / SimpleTaskConfiguration.class] 2017-08-18 18:20:11.150 INFO 828-[[main] oscloud.context.scope.GenericScope:BeanFactory id = 03034f55-14f0-32fd-9b4a-577a14282248 2017-08-18 18:20:11.161 WARN 828 --- [main] oscaConfigurationClassEnhancer:@Bean方法ScopeConfiguration.stepScope是非静态的,并返回可分配给Spring的BeanFactoryPostProcessor接口的对象。 这将导致无法在方法的声明@Configuration类中处理诸如@ Autowired,@ Resource和@PostConstruct之类的注释。 在此方法中添加“静态”修饰符可避免这些容器生命周期问题; 有关完整的详细信息,请参见@Bean javadoc。 2017-08-18 18:20:11.167警告828 --- [main] oscaConfigurationClassEnhancer:@Bean方法ScopeConfiguration.jobScope是非静态的,并返回可分配给Spring的BeanFactoryPostProcessor接口的对象。 这将导致无法在方法的声明@Configuration类中处理诸如@ Autowired,@ Resource和@PostConstruct之类的注释。 在此方法中添加“静态”修饰符可避免这些容器生命周期问题; 有关完整的详细信息,请参见@Bean javadoc。 2017-08-18 18:20:11.218信息828-[[主要] trationDelegate $ BeanPostProcessorChecker:类型[org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration $$ EnhancerBySpringCGLIB $的Bean'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' $ 591cf5d8]不符合所有BeanPostProcessor的处理要求(例如:不符合自动代理的条件)2017-08-18 18:20:11.224信息828-[[main] trationDelegate $ BeanPostProcessorChecker:Bean'org.springframework类型为[org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration $$ EnhancerBySpringCGLIB $$ 3d02f2db]的.transaction.annotation.ProxyTransactionManagementConfiguration'不符合所有BeanPostProcessor的处理条件(例如:不符合自动代理资格)2017-08- 18 18:20:11.250信息828-[main] trationDelegate $ BeanPostProcessorChecker:Bean'org.springframework.cloud.task.batch.configuration.TaskBatchAutoCo 类型为[org.springframework.cloud.task.batch.configuration.TaskBatchAutoConfiguration $$ EnhancerBySpringCGLIB $$ c2729e67]的nfiguration不适合所有BeanPostProcessor处理(例如:不符合自动代理资格)2017-08-18 18:20:11.258信息828-[main] trationDelegate $ BeanPostProcessorChecker:类型为[org.springframework.cloud.task.batch.listener.BatchEventAutoConfiguration'的Bean'org.springframework.cloud.task.batch.listener.BatchEventAutoConfiguration'类型$ EnhancerBySpringCGLIB $$ ac8a86a]不适合所有BeanPostProcessor处理(例如:不符合自动代理资格)2017-08-18 18:20:11.655 INFO 828 --- [main] osjdbc.datasource.init。 ScriptUtils:从类路径资源[org / springframework / cloud / task / schema-h2.sql]中执行SQL脚本`

在服务器日志中,我看到许多不同的字符随时间变化,例如: "[0x0][0x0][0x8][0x8][0x0][0xfa]CaJ[\\r]3[0x99][0xd4]}[0x3][0x0][0x0][0x87][0x6][0x0][0x0]3[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xa4][0x81] c[\\n]"

很抱歉格式化,无法正确格式化输出

解决了。 问题出在组成任务运行程序和SCDF中的H2版本不兼容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM