Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

BotDependencyConfiguration defines ExecutorService bean but its not in use #1339

Open
przem opened this issue Oct 14, 2021 · 1 comment
Open
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@przem
Copy link

przem commented Oct 14, 2021

Is your feature request related to a problem? Please describe.
The problem i've stumbled upon is that i was getting com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.OffsetDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.microsoft.bot.schema.Activity["timestamp"]) error for missing module that was already in the deps. The cause was that ExecutorFactory#factory was using wrong classloader and module was not there. Had to do nasty reflection tricks to exchange the factory.

Describe the solution you'd like
I'd like that BotFrameworkAdapter utilize the ExecutorService spring bean. This could be done by expanding constructor of BotFrameworkAdapter to accept ExecutorService, and also other classes like BotFrameworkHttpAdapter AdapterWithErrorHandler

@przem przem added feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team. labels Oct 14, 2021
@przem przem changed the title BotDependencyConfiguration has ExecutorService bean but its not in use BotDependencyConfiguration defines ExecutorService bean but its not in use Oct 14, 2021
@dmvtech dmvtech added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. labels Oct 18, 2021
@johnmiroki
Copy link

johnmiroki commented Jul 12, 2022

@przem Hi, may I ask how you swapped out the ExecutorFactory#factory. In my case, I could not load classpath resources from within the SpringBoot jar, because of the wrong class loader ExecutorFactory#factory uses. Love to find out the fix. Appreciate it!

btw, if JDK 1.8 is used, do you still have the same issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

3 participants