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

Unable to run multiple-datasources as-is on local Spring Cloud Data Flow installation #690

Closed
fysiskhund opened this issue Jul 22, 2020 · 2 comments
Assignees

Comments

@fysiskhund
Copy link

Hi,
I cloned the repo to my hard disk and opened the multiple-datasources example with IntelliJ Idea.
Without altering the source code, I ran mvn package to produce a *.jar.

I then registered the jar as an app using the Spring shell with this command:

app register --type task --name multiple-datasources --uri file://root/scdf/multiple-datasources-2.3.0-SNAPSHOT.jar

I created the task definition as shown:
Screenshot 2020-07-13 at 21 44 25

And tried to run it. Unfortunately, SCDF does not record start or stop times for the task execution, and looking into the logs vía the shell, I found the following relevant messages:

2020-07-22 23:00:59.298 ERROR 140 --- [           main] o.s.c.t.listener.TaskLifecycleListener   : An event to end a task has been received for a task that has not yet started.
2020-07-22 23:00:59.298  WARN 140 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'taskLifecycleListener'; nested exception is java.lang.IllegalArgumentException: Invalid TaskExecution, ID 52 not found

I've looked at similar issues, but am unable to understand what I'm doing wrong. Moreover I was hoping that the example would just run "out of the box". What am I missing?

Thanks!

@cppwfs
Copy link
Collaborator

cppwfs commented Sep 23, 2020

In this case we can add a profile to the sample that will allow a user to work with the sample standalone (default) and a another profile for a qualified datasource (dataflow) like the example here: https://github.com/cppwfs/multidbpropsample/blob/master/README.adoc

@cppwfs
Copy link
Collaborator

cppwfs commented Dec 9, 2020

We have Resolved this issue with Issue #727 and will be available in the 2.3.0 release of Spring Cloud Task. Thanks for raising the issue.

@cppwfs cppwfs closed this as completed Dec 9, 2020
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

Successfully merging a pull request may close this issue.

3 participants