Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZipkinHttpClientSender fails with "Failed to introspect Class" when spring-web is not on the classpath #42160

Closed
philwebb opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
type: regression A regression from a previous release
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented Sep 6, 2024

From @jonatan-ivanov:

I'm upgrading some of our (Micrometer) sample projects from Boot 3.2 to 3.3 and quite a few of out tests are failing because it seems ZipkinHttpClientSender depends on spring-web and the failing samples don't use web, see the import: org.springframework.http.HttpHeaders.

Maybe somehow it was on the classpath before but I think the Zipkin client should not depend on spring-web.

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinHttpClientSender] from ClassLoader [org.springframework.boot.loader.launch.LaunchedClassLoader@568db2f2]
Caused by: java.lang.NoClassDefFoundError: org/springframework/http/HttpHeaders    
Caused by: java.lang.ClassNotFoundException: org.springframework.http.HttpHeaders
@philwebb philwebb added the type: regression A regression from a previous release label Sep 6, 2024
@philwebb philwebb added this to the 3.4.x milestone Sep 6, 2024
@mhalbritter mhalbritter self-assigned this Sep 6, 2024
@mhalbritter mhalbritter modified the milestones: 3.4.x, 3.4.0-M3 Sep 6, 2024
@mhalbritter
Copy link
Contributor

We need to do that in 3.3.x, too. I'm backporting the fix, have realized that too late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

2 participants