簡體   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