0

I am trying to integrate Spring Sleuth with an existing Spring Boot application with below version. For some reason, during the start up, it;s failing to create bean with below error

The BatchEnrollment class as @EnableScheduling and @Scheduled methods

<spring-cloud.version>2021.0.3</spring-cloud.version>
<spring-cloud-starter-sleuth.version>3.1.3</spring-cloud-starter-sleuth.version>

  <artifactId>spring-boot-starter-aop</artifactId>
  <version>2.6.13</version>
  <artifactId>spring-boot-starter-actuator</artifactId>
  <version>2.6.13</version>

org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.scheduler.BatchEnrollment: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Shankar
  • 175
  • 2
  • 7
  • 17
  • Welcome to SO. Please learn [how to ask a question on SO](https://stackoverflow.com/help/how-to-ask) and provide a [minimal, complete, and verifiable example](https://stackoverflow.com/help/mcve). Thank you. Your error message helps. I think I know what is happening. But in order to help you, I need to see your code. Only then, I can tell you how to fix it. – kriegaex Apr 09 '23 at 08:52

0 Answers0