Summary: | Race condition NullpointerException in JspServletWrapper | ||
---|---|---|---|
Product: | Tomcat 9 | Reporter: | Julien Béti <julien> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 9.0.12 | ||
Target Milestone: | ----- | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | 62603 | ||
Bug Blocks: |
Description
Julien Béti
2018-10-02 09:13:04 UTC
Sorry, the caused-by part of the trace was missing: Caused by: java.lang.NullPointerException: null at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:458) ... 74 common frames omitted I would suggest to keep the "if(reload)" outside the synchronized block, and check again inside with "getReloadInternal()" Something like if(reload) { synchronized (this) { if(getReloadInternal()) { //... } } } |