Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
NPE in PropertyOrFieldReference due to concurrency issue when caching SpelExpression objects [SPR-13023] #17614
Thymeleaf applications may experience frequent null-pointer exceptions in their production logs or load test logs due to a multi-threading issue in Spring's PropertyOrFieldReference class.
The cacheManager in Thymeleaf shares SpelExpression objects over multiple threads. These threads could possibly change concurrently the shared field ast.cachedReadAccessor, which happens in class PropertyOrFieldReference.
Added a patch file that solves this issue.
Reference URL: thymeleaf/thymeleaf-spring#83