# Temporal worker poller does not start after upgrading the springboot and temporal version

**URL:** <https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [May 24, 2023, 3:11pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340 "2023-05-24T15:11:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anjula\_Paulus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anjula_paulus/32/1715_2.png) [@Anjula\_Paulus](https://community.temporal.io/u/Anjula_Paulus)\
**Post date:** [May 24, 2023, 3:11pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/1 "2023-05-24T15:11:36Z")

</div>

I updated the application dependencies from

Old versions:  
Springboot: 2.7.3  
Temporal & temporal-spring-boot-autoconfigure-alpha: 1.16.0

New versions:  
Springboot: 3.0.6  
Temporal & temporal-spring-boot-autoconfigure-alpha: 1.19.1

The temporal worker poller seems to be not starting after the update but it works fine with the older versions. We are able to create workflows but it shows as no workers found.

**Old:**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/5/5b295e1b42d520bacf60c18ae5146ab06365f696.png)

**New:**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/e/ee138de9f74d6956bc310a5ca056c8d89ec43292.png)

**Application Property yaml**

```auto
  spring:
    temporal:
      connection:
        target: ${TEMPORAL_HOST}:${TEMPORAL_PORT}
        target.namespace: ${TEMPORAL_NAMESPACE}
      workers:
        - task-queue: GENERIC_WORKFLOW_QUEUE
      workflow-cache:
        max-instances: 10
        max-threads: 10
      workersAutoDiscovery:
        packages: com.endowus.workflow.engine.hk
      timeouts:
        activityStartToCloseTimeout: ${ACTIVITY_START_TO_CLOSE_TIMEOUT}
        workflowTimeout: ${WORKFLOW_TIMEOUT}

```

Please help out on how I could resolve this. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [May 24, 2023, 3:15pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/2 "2023-05-24T15:15:17Z")

</div>

@Anjula_Paulus I will try to reproduce this

---

<div class="post-metadata">

**Author:** ![Anjula\_Paulus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anjula_paulus/32/1715_2.png) [@Anjula\_Paulus](https://community.temporal.io/u/Anjula_Paulus)\
**Post date:** [May 25, 2023, 4:44am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/4 "2023-05-25T04:44:46Z")

</div>

@antonio.perez Any update on this?

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [May 25, 2023, 11:08am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/5 "2023-05-25T11:08:13Z")

</div>

@Anjula_Paulus

I have something working using the same versions, and I can see the pollers.

```auto
2023-05-25 13:01:04.961 INFO [temporal-demo,,] 26333 --- [main] io.temporal.internal.worker.Poller : start: Poller{name=Workflow Poller taskQueue="DemoTaskQueue", namespace="default", identity=26333@Antonio-Perezs-MacBook-Pro.local}
2023-05-25 13:01:04.963 INFO [temporal-demo,,] 26333 --- [main] io.temporal.internal.worker.Poller : start: Poller{name=Activity Poller taskQueue="DemoTaskQueue", namespace="default", identity=26333@Antonio-Perezs-MacBook-Pro.local}

```

You can find the repo here [GitHub - antmendoza/temporal\_spring-boot-demo at community\_8340](https://github.com/antmendoza/temporal_spring-boot-demo/tree/community_8340)

If you want to share something to reproduce it I can take a look

Thanks,

---

<div class="post-metadata">

**Author:** ![Anjula\_Paulus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anjula_paulus/32/1715_2.png) [@Anjula\_Paulus](https://community.temporal.io/u/Anjula_Paulus)\
**Post date:** [May 28, 2023, 6:29am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/7 "2023-05-28T06:29:49Z")

</div>

@antonio.perez Does this warn logs mean something?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/4/409e250ed63b8651220d06b1906d4d420c6d5db5.png)  
Thanks

---

<div class="post-metadata">

**Author:** ![Anjula\_Paulus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anjula_paulus/32/1715_2.png) [@Anjula\_Paulus](https://community.temporal.io/u/Anjula_Paulus)\
**Post date:** [May 28, 2023, 10:42am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/8 "2023-05-28T10:42:37Z")

</div>

How to enable debig level logs in the SDK?

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [May 29, 2023, 10:19am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/9 "2023-05-29T10:19:40Z")

</div>

@Anjula_Paulus

you can add the log level to your `application.yml` for `io.temporal`

```auto
logging:
  level:
    io.temporal: debug

```

> Does this warn logs mean something?

Looks like a spring issue [Unnecessary parameter name introspection for constructor-arg resolution (leading to LocalVariableTableParameterNameDiscoverer warnings) · Issue #29612 · spring-projects/spring-framework · GitHub](https://github.com/spring-projects/spring-framework/issues/29612)

---

<div class="post-metadata">

**Author:** ![vjv](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vjv/32/3881_2.png) [@vjv](https://community.temporal.io/u/vjv)\
**Post date:** [June 7, 2023, 6:54pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/10 "2023-06-07T18:54:08Z")

</div>

@Anjula_Paulus were you able to solve this ?

@antonio.perez i am seeing the exact same behaviour .Could you checkout this [demo repo](https://github.com/vijaysenthil/temporal-demo) to see what the issue might be ? [GitHub - vijaysenthil/temporal-demo](https://github.com/vijaysenthil/temporal-demo)

I see this in the logs

```auto
2023-06-07T13:43:53.142-05:00 INFO 10618 --- [main] c.temporal.example.demo.DemoApplication : Starting DemoApplication using Java 17.0.5 with PID 10618 (/Users/vijaysenthil.veeriah/src/java17/test/temporal-demo/build/classes/java/main started by vijaysenthil.veeriah in /Users/vijaysenthil.veeriah/src/java17/test/temporal-demo)
2023-06-07T13:43:53.145-05:00 INFO 10618 --- [main] c.temporal.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2023-06-07T13:43:53.445-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.WorkerProperties
2023-06-07T13:43:53.450-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.WorkerProperties$CapacityConfigurationProperties
2023-06-07T13:43:53.451-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.WorkerProperties$RateLimitsConfigurationProperties
2023-06-07T13:43:53.714-05:00 INFO 10618 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7888 (http)
2023-06-07T13:43:53.720-05:00 INFO 10618 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-06-07T13:43:53.721-05:00 INFO 10618 --- [main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.8]
2023-06-07T13:43:53.781-05:00 INFO 10618 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-06-07T13:43:53.782-05:00 INFO 10618 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 604 ms
2023-06-07T13:43:53.817-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.TemporalProperties
2023-06-07T13:43:53.818-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.WorkersAutoDiscoveryProperties
2023-06-07T13:43:53.822-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.NamespaceProperties$WorkflowCacheProperties
2023-06-07T13:43:53.823-05:00 WARN 10618 --- [main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.temporal.spring.boot.autoconfigure.properties.ConnectionProperties
2023-06-07T13:43:54.036-05:00 INFO 10618 --- [main] i.t.s.WorkflowServiceStubsImpl : Created WorkflowServiceStubs for channel: ManagedChannelOrphanWrapper{delegate=ManagedChannelImpl{logId=1, target=127.0.0.1:7233}}
2023-06-07T13:43:54.282-05:00 INFO 10618 --- [main] i.t.s.b.a.template.WorkersTemplate : Creating configured worker for a task queue TeamTaskQueue
2023-06-07T13:43:54.305-05:00 INFO 10618 --- [main] i.t.s.b.a.template.WorkersTemplate : Registering auto-discovered workflow class class com.temporal.example.demo.temporal.workflow.TeamWorkflowImpl on a worker with a task queue 'TeamTaskQueue'
2023-06-07T13:43:54.307-05:00 INFO 10618 --- [main] i.t.s.b.a.template.WorkersTemplate : Registering auto-discovered activity bean 'FMVFActivityImpl' of class class com.temporal.example.demo.temporal.activity.team.FMVFActivityImpl on a worker with a task queue 'TeamTaskQueue'
2023-06-07T13:43:54.383-05:00 INFO 10618 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7888 (http) with context path ''
2023-06-07T13:43:54.389-05:00 INFO 10618 --- [main] c.temporal.example.demo.DemoApplication : Started DemoApplication in 1.48 seconds (process running for 1.676)
2023-06-07T13:45:47.510-05:00 INFO 10618 --- [nio-7888-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-06-07T13:45:47.510-05:00 INFO 10618 --- [nio-7888-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2023-06-07T13:45:47.511-05:00 INFO 10618 --- [nio-7888-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2023-06-07T13:45:47.691-05:00 INFO 10618 --- [nio-7888-exec-4] o.springdoc.api.AbstractOpenApiResource : Init duration for springdoc-openapi is: 70 ms
2023-06-07T13:45:53.319-05:00 INFO 10618 --- [nio-7888-exec-5] c.t.e.demo.controller.DemoController : creating workflow test-7b82a350-64cf-4d71-b7cf-581d86553909

```

able to create workflow but the temporal engine says no workers found

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/8/8dcde62978a2d5f7a9c9c40feef7b1ebfe365683.png)

---

<div class="post-metadata">

**Author:** ![vjv](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vjv/32/3881_2.png) [@vjv](https://community.temporal.io/u/vjv)\
**Post date:** [June 7, 2023, 9:55pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/11 "2023-06-07T21:55:13Z")

</div>

as a workaround i was able to explicitly register the worker, the config based / auto discovery is the part that is not working

---

<div class="post-metadata">

**Author:** ![Anjula\_Paulus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anjula_paulus/32/1715_2.png) [@Anjula\_Paulus](https://community.temporal.io/u/Anjula_Paulus)\
**Post date:** [June 8, 2023, 11:05am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/12 "2023-06-08T11:05:07Z")

</div>

I didnt not have time to work on it since last time. Still havent found a solution for it. @vjv

---

<div class="post-metadata">

**Author:** ![chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chris](https://community.temporal.io/u/chris)\
**Post date:** [June 12, 2023, 9:21am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/13 "2023-06-12T09:21:45Z")

</div>

For me this was fixed by explicitly starting the Spring application context:

`ConfigurableApplicationContext applicationContext = SpringApplication.run(DemoApplication.class, args); applicationContext.start();`

See this comment from `RootNamespaceAutoConfiguration`:

```auto
// It needs to listed on ContextStartedEvent, not ContextRefreshedEvent.
// Using ContextRefreshedEvent will cause start of workers early, during the context
// initialization
// and potentially incorrect order of bean initialization.
// Refresh event can also be fired multiple times during the context initialization.
// For this listener to ever work, Spring context needs to be actually started.
// Note that a lot of online samples for Spring don't start the context at all:
// https://stackoverflow.com/questions/48099355/contextstartedevent-not-firing-in-custom-listener

```

---

<div class="post-metadata">

**Author:** ![vjv](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vjv/32/3881_2.png) [@vjv](https://community.temporal.io/u/vjv)\
**Post date:** [June 12, 2023, 4:42pm UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/14 "2023-06-12T16:42:24Z")

</div>

thanks @chris I can confirm that fixed it for me too 🙏 Would be awesome if this was called out in the [temporal spring boot starter page](https://github.com/temporalio/sdk-java/tree/098504118900b2f4bc71fd52d183484b4af444fd/temporal-spring-boot-autoconfigure-alpha)

---

<div class="post-metadata">

**Author:** ![Hari\_Prasad](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/hari_prasad/32/4364_2.png) [@Hari\_Prasad](https://community.temporal.io/u/Hari_Prasad)\
**Post date:** [April 5, 2024, 6:16am UTC](https://community.temporal.io/t/temporal-worker-poller-does-not-start-after-upgrading-the-springboot-and-temporal-version/8340/15 "2024-04-05T06:16:45Z")

</div>

I recently upgraded to Spring boot 3.2.4 and Temporal 1.22.3. After upgrading, I see the same issue. I also have the application context started explicitly.
