getsentry / getsentry/sentry-java
`ClassNotFoundException` for `SentryReactorUtils` when excluding the `sentry-reactor` dependency
- Linguagem predominante
- Kotlin
- Estrelas
- 1.4k
- Forks
- 478
- Merge médio
- 2d 22h
- PRs com merge (30d)
- 69
Descrição
### 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.
Guia de contribuição
Direção de pesquisa
Comece com o exemplo WebFlux spring-boot-jakarta e reproduza a falha depois de excluir sentry-reactor. Compare SentryWebExceptionHandler com SentryWebFilter e SentryWebFilterWithThreadLocalAccessor; considera-se concluído quando a exceção real é capturada sem uma ClassNotFoundException de SentryReactorUtils.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java, spring-boot
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100