Encountering NullPointerException when a bunch of requests hit the web app in short period
See original GitHub issueWhen a bunch of requests hit the web app in short period (e.g. 2000 requests in 5 min), tomcat-redisson-9 throws NPE attached on the bottom, the issue refers to below line of code. https://github.com/redisson/redisson/blob/9579ee735a7fc57a0461c1e4c321954659b26d87/redisson-tomcat/redisson-tomcat-9/src/main/java/org/redisson/tomcat/UpdateValve.java#L56 I’ve tried with various versions of redisson-tomcat-9(3.12.3, 3.12.4, 3.13.0, 3.13.4), but the issue stick to below line of code.
redisson version: 3.13.4 redisson-tomcat-9 version: 3.13.4
[http-nio-8080-exec-4] ERROR org.apache.coyote.http11.Http11Processor - Error processing request java.lang.NullPointerException: null
at org.redisson.tomcat.UpdateValve.invoke(UpdateValve.java:56) [redisson-tomcat-9-3.13.0.jar:3.13.0]
at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343) [catalina.jar:9.0.33]
at org.apache.coyote.http11. Http11Processor.service(Http11Processor.java:373) [tomcat-coyote.jar:9.0.33]
at org.apache.coyote. AbstractProcessorLight.process(AbstractProcessorLight.java:65) [ tomcat-coyote.jar:9.0.33]
at org.apache.coyote. AbstractProtocol$connectionHandler.process(AbstractProtocol.java:868) [ tomcat-coyote.jar:9.0.33]
at org.apache.tomcat.util.net.NioEndpoint SocketProcessor.doRun(NioEndpoint.java:1594) [ tomcat-coyote.jar:9.0.33]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [ tomcat-coyote.jar:9.0.33]
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:628) [?:?]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [ tomcat-util.jar:9.0.33]
at java.lang.Thread.run(Thread.java:834) [?:?]
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >java - What is a NullPointerException, and how do I fix it?
A null pointer exception is thrown when an application attempts to use null in a case where an object is required.
Read more >Java NullPointerException - Detect, Fix, and Best Practices
Anybody working in java must have seen this popping out of nowhere in the java standalone program as well as the java web...
Read more >A null pointer exception is encountered when attempting to ...
PI63141: A null pointer exception is encountered when attempting to servi ce a request through the Java ODR causing the request to fail....
Read more >Spring Boot Reference Documentation
This section provides a brief overview of Spring Boot reference documentation. ... web requests while developing Spring MVC and Spring WebFlux applications, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please try version attached
redisson-tomcat-9-3.13.5-SNAPSHOT.jar.zip
Fixed