question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encountering NullPointerException when a bunch of requests hit the web app in short period

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mrnikocommented, Sep 12, 2020

Please try version attached

redisson-tomcat-9-3.13.5-SNAPSHOT.jar.zip

0reactions
mrnikocommented, Sep 14, 2020

Fixed

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found