Skip to content

DurableTasks: Warning when workflow started outside of the SDK context #1378

Open
@salaboy

Description

@salaboy

Expected Behavior

Not sure, but at least the warning should be more clear about why it is failing on the durable task side.

Actual Behavior

You start a Java application with some workflows registered, but instead of using the application to create a new instance, you send a curl request to the Dapr API to start a new workflow instance.

In that situation, because the App doesn't have started the workflow and probably don't have the context, durable task framework prints this warning:

2025-05-16T15:28:17.408+01:00  WARN 20378 --- [pool-3-thread-1] io.dapr.durabletask                      : The orchestrator failed with an unhandled exception: java.lang.NullPointerException: Cannot invoke "io.dapr.durabletask.TaskOrchestrationFactory.create()" because "factory" is null

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

Labels

durabletaskwork for dapr/durabletask-javakind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions