dapr / dapr/java-sdk

DurableTasks: Warning when workflow started outside of the SDK context

Aperta
#1,378 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@siri-varma ci sta già lavorando.

Dal 19/5/2025.

durabletask kind/bug
Lingua principale
Java
Stelle
300
Fork
230
Merge medio
5g 1h
PR unite (30g)
5

Descrizione

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:

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.