Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BatchRemotePartitioningAT#runBatchRemotePartitionJobCloudFoundry on using external database #352

Open
ilayaperumalg opened this issue Feb 21, 2022 · 0 comments

Comments

@ilayaperumalg
Copy link
Contributor

When using external user provided database, the test runBatchRemotePartitionJobCloudFoundry fails with the following exception (though the spring.datasource.* properties are set correctly) :

  2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT org.cloudfoundry.reconfiguration.org.springframework.cloud.service.ServiceConnectorCreationException: Failed to created cloud datasource for relational-30ba483a-0f37-40b4-8393-cf32d61c7810 service
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.create(DataSourceCreator.java:64) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.create(DataSourceCreator.java:24) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.Cloud.getServiceConnector(Cloud.java:288) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.Cloud.getSingletonServiceConnector(Cloud.java:202) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.CloudServiceUtils.getSingleCloudService(CloudServiceUtils.java:58) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.CloudServiceUtils.replaceBeanOfType(CloudServiceUtils.java:50) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.CloudServiceReconfigurationBeanFactoryPostProcessor.lambda$postProcessBeanFactory$1(CloudServiceReconfigurationBeanFactoryPostProcessor.java:59) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.ApplicationContextCloudServicesHolder.withCloudServices(ApplicationContextCloudServicesHolder.java:48) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.CloudServiceReconfigurationBeanFactoryPostProcessor.postProcessBeanFactory(CloudServiceReconfigurationBeanFactoryPostProcessor.java:52) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:286) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:131) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.cloud.dataflow.acceptence.tests.batch.remote.partition.BatchRemotePartitionApplication.main(BatchRemotePartitionApplication.java:56) [classes/:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_312]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_312]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_312]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_312]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app/:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app/:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [app/:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [app/:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT Caused by: org.cloudfoundry.reconfiguration.org.springframework.cloud.CloudException: No suitable database driver found for relational-30ba483a-0f37-40b4-8393-cf32d61c7810 service
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.getDriverClassName(DataSourceCreator.java:116) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.createPooledDataSource(DataSourceCreator.java:72) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	at org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.create(DataSourceCreator.java:55) ~[spring_auto_reconfiguration-2.12.0_RELEASE.jar:na]
   2022-02-21T21:28:16.62+0530 [APP/TASK/task-cb07fa51-d/0] OUT 	... 25 common frames omitted
   2022-02-21T21:28:16.71+0530 [APP/TASK/task-cb07fa51-d/0] OUT Exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant