gpt4 book ai didi

java - 由 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5 产生的 NullPointerException

转载 作者:行者123 更新时间:2023-11-28 23:40:08 26 4
gpt4 key购买 nike

获取 NullPointerException

我收到 NullPointerException

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5" java.lang.OutOfMemoryError: Java heap space
Exception in thread "http-8080-150" java.lang.NullPointerException
Exception in thread "http-8080-148"
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:537)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:554)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:618)
Exception in thread "http-8080-149"
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:537)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:554)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:618)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:537)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:554)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:618)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Nov 26, 2013 19:26:57 -0500 NewRelic 7 WARN: Unexpected exception detecting dead threads: java.lang.OutOfMemoryError: Java heap space
Exception in thread "http-8080-178" java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:537)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:554)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:618)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "http-8080-179" java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:537)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:554)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:618)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

谁能解释一下原因

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5" java.lang.OutOfMemoryError: Java heap space

  Exception in thread "http-8080-149"   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

正在发生。以及它们产生 java.lang.OutOfMemoryError: Java heap space 和 NullPointerException 的原因。我怎样才能克服这些异常。如果有人知道这一点,请回复,因为这些异常发生在生产服务器上。谢谢。

最佳答案

java.lang.OutOfMemoryError 表示某处存在内存泄漏。最好检查您的源代码并摆脱内存不足的问题。

在抛出该错误后,您的系统处于完全未定义的状态。我不太关心其他异常,因为无论如何您都必须重新启动 tomcat。

关于java - 由 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5 产生的 NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20489369/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com