Proxy generation with Java 17 fails with "Cannot invoke "Object.getClass()" because "cause" is null" #27490
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
When trying to start a filter that has the @transactional annotation on it (either org.springframework.transaction.annotation.Transactional or javax.transaction.Transactional), Tomcat fails to start up with the
gradlew bootRun
command. Below is the smallest amount of code where the issue is reproducible.It was working fine with Java 11 / gradle 7.0.2.
Context
Java: OpenJDK Runtime Environment (build 17+35-2724)
Gradlew: 7.2
build.gradle
MyApplication.java
Tomcat startup logs
If the @transactional annotation is removed from the filter, the filter is created successfully.
The text was updated successfully, but these errors were encountered: