Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NPE in ReactiveTransactionSupport.unwrapIfResourceCleanupFailure #30597

@andruskutt

Description

@andruskutt

Affects: spring boot 3.0.7


in method unwrapIfResourceCleanupFailure of org.springframework.transaction.interceptor.TransactionAspectSupport.ReactiveTransactionSupport class
if ex.getMessage() returns null then we get NullPointerException:

			if (ex instanceof RuntimeException &&
					ex.getCause() != null &&
					ex.getMessage().startsWith("Async resource cleanup failed")) {
				return ex.getCause();
			}

https://github.com/spring-projects/spring-framework/blob/main/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java#L1088

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions