getsentry / getsentry/sentry-java

`ClassNotFoundException` for `SentryReactorUtils` when excluding the `sentry-reactor` dependency

Abierto
#4,789 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Bug Errors Java
Lenguaje dominante
Kotlin
Estrellas
1.4k
Forks
478
Merge medio
2 d 22 h
PR fusionados (30 d)
69

Descripción

### Integration

sentry

### Java Version

17

### Version

8.23.0

### Steps to Reproduce

Use `spring-boot-jakarta` dependency but exclude `sentry-reactor` dependency in WebFlux sample. Have a `@GetMapping` method that throws an exception.

### Expected Result

Exception captured to Sentry

We could have a `SentryWebExceptionHandlerWithThreadLocalAccessor` in addition to `SentryWebExceptionHandler`, then have `SentryWebExceptionHandler` not use `SentryReactor`. This would mimic what we do for `SentryWebFilterWithThreadLocalAccessor` and `SentryWebFilter`.

### Actual Result

`Caused by: java.lang.ClassNotFoundException: io.sentry.reactor.SentryReactorUtils`

and

`reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response`

and the `ClassNotFoundException` is reported to Sentry instead of the real exception.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.