spring-retry icon indicating copy to clipboard operation
spring-retry copied to clipboard

NullPointerException

Open lufei66666 opened this issue 1 year ago • 2 comments

why java.lang.NullPointerException: null at org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.getDelegate(AnnotationAwareRetryOperationsInterceptor.java:161)?

use spring-retry:1.2.5.RELEASE

lufei66666 avatar Apr 27 '23 06:04 lufei66666

@lufei66666 it's hard to provide support with a 2 lines stack trace. Can you please share a small sample that reproduces the NPE? You can share that with us as a zip attached to this issue or by sharing a link to a GitHub repository.

snicoll avatar Apr 27 '23 06:04 snicoll

That version is out of support. Please, consider to upgrade at least to 1.3.4. And yes: simple code to reproduce would be great.

There is some fix for that class in 1.2.x, but it was never released: https://github.com/spring-projects/spring-retry/commit/b279131e4048863bd094b745f7f0e1cfce2d2fb6.

So, yeah, better to upgrade to the latest supported version - and your problem might go away.

artembilan avatar Apr 27 '23 13:04 artembilan

Has been fix in up-to-date version this or other way.

artembilan avatar May 10 '24 19:05 artembilan