dapr / java-sdk

Dapr SDK for Java
Apache License 2.0
259 stars 207 forks source link

null pointer exception err when using workflows #1121

Open sicoyle opened 3 weeks ago

sicoyle commented 3 weeks ago

Expected Behavior

I'm running a java workflow app and seeing a NullPointerException.

== APP - order-workflow == 2024-09-04 18:58:39.903  INFO 51431 --- [nio-5002-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
== APP - order-workflow == 2024-09-04 18:58:39.903  INFO 51431 --- [nio-5002-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
== APP - order-workflow == 2024-09-04 18:58:39.904  INFO 51431 --- [nio-5002-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
== APP - order-workflow == 2024-09-04 18:58:48.012  WARN 51431 --- [       Thread-1] com.microsoft.durabletask                : The orchestrator failed with an unhandled exception: java.lang.NullPointerException: Cannot invoke "com.microsoft.durabletask.TaskOrchestrationFactory.create()" because "factory" is null

Actual Behavior

We should not see this error.

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

artur-ciocanu commented 2 weeks ago

@sicoyle do you have a reproducible example that we could try to run and see the issue. Thank you!

artur-ciocanu commented 1 week ago

@sicoyle sorry to ping you again, do you have a reproducible example that we could try. Thank you 🙇 .

CC: @cicoyle @artursouza