服务迁移jdk8-> jdk11之后,发生奇怪的错误。 而且,对服务本身没有影响。它按预期工作
我想了解导致此错误的原因以及解决方法
[http-nio-8081-exec-1] ERROR org.apache.coyote.http11.Http11Processor - Error finishing response[]
java.lang.NullPointerException
at org.apache.tomcat.util.http.MimeHeaders.setValue(MimeHeaders.java:319)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:886)
at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:369)
at org.apache.coyote.http11.Http11Processor.endRequest(Http11Processor.java:1112)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:448)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)