Skip to content

ExecutorBeanPostProcessor Makes Guava's ListeningExecutorService Beans Unusable #1130

@jwcarman

Description

@jwcarman

We recently upgraded to Spring Boot 2.1.0 (with spring-cloud-sleuth-core 2.0.2.RELEASE) and for our apps that use a Guava ListeningExecutorService, exposed as a bean, they have started getting the following exception:

org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'batchExecutorService' is expected to be of type 'com.google.common.util.concurrent.ListeningExecutorService' but was actually of type 'org.springframework.cloud.sleuth.instrument.async.TraceableExecutorService'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions