Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 无法展开数据,无效状态已关闭-未使用代理服务器_Spring_Tomcat - Fatal编程技术网

Spring 无法展开数据,无效状态已关闭-未使用代理服务器

Spring 无法展开数据,无效状态已关闭-未使用代理服务器,spring,tomcat,Spring,Tomcat,我正在运行ApacheTomcat 9.0.41,遇到以下错误。快速搜索显示,最常见的原因是配置错误的代理服务器,但我没有使用代理服务器。我尝试将连接器上的keepAliveTimeout属性设置为-1,但没有解决问题 26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.coyote.http11.Http11InputBuffer.fill Before fill(): [true], parsingReq

我正在运行ApacheTomcat 9.0.41,遇到以下错误。快速搜索显示,最常见的原因是配置错误的代理服务器,但我没有使用代理服务器。我尝试将连接器上的keepAliveTimeout属性设置为-1,但没有解决问题

26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.coyote.http11.Http11InputBuffer.fill Before fill(): [true], parsingRequestLine: [true], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position() [0]
26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]], Read from buffer: [0]
26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]], Read direct from socket: [0]
26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.coyote.http11.Http11InputBuffer.fill Received []
26-Apr-2021 13:03:38.983 FINE [https-jsse-nio-8443-exec-5] org.apache.coyote.AbstractProcessorLight.process Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]], Status in: [OPEN_READ], State out: [OPEN]
26-Apr-2021 13:03:38.984 FINE [https-jsse-nio-8443-exec-5] org.apache.coyote.AbstractProtocol$ConnectionHandler.release Pushed Processor [org.apache.coyote.http11.Http11Processor@62e6798c]
26-Apr-2021 13:03:38.984 FINE [https-jsse-nio-8443-exec-5] org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.registerReadInterest Registered read interest for [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]]
26-Apr-2021 13:03:39.005 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Processing socket [org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]] with status [OPEN_READ]
26-Apr-2021 13:03:39.005 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Found processor [null] for socket [org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]]
26-Apr-2021 13:03:39.005 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Popped processor [org.apache.coyote.http11.Http11Processor@62e6798c] from cache
26-Apr-2021 13:03:39.005 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.http11.Http11InputBuffer.fill Before fill(): [true], parsingRequestLine: [true], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position() [0]
26-Apr-2021 13:03:39.005 FINE [https-jsse-nio-8443-exec-6] org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]], Read from buffer: [0]
26-Apr-2021 13:03:39.006 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
    java.io.IOException: Unable to unwrap data, invalid status [CLOSED]
        at org.apache.tomcat.util.net.SecureNioChannel.read(SecureNioChannel.java:657)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1229)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1141)
        at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:795)
        at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:359)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
26-Apr-2021 13:03:39.006 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProcessor.setErrorState Error state [CLOSE_CONNECTION_NOW] reported while processing request
    java.io.IOException: Unable to unwrap data, invalid status [CLOSED]
        at org.apache.tomcat.util.net.SecureNioChannel.read(SecureNioChannel.java:657)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1229)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1141)
        at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:795)
        at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:359)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
26-Apr-2021 13:03:39.006 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProcessorLight.process Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]], Status in: [OPEN_READ], State out: [CLOSED]
26-Apr-2021 13:03:39.006 FINE [https-jsse-nio-8443-exec-6] org.apache.coyote.AbstractProtocol$ConnectionHandler.release Pushed Processor [org.apache.coyote.http11.Http11Processor@62e6798c]
26-Apr-2021 13:03:39.007 FINE [https-jsse-nio-8443-exec-6] org.apache.tomcat.util.threads.LimitLatch.countDown Counting down[https-jsse-nio-8443-exec-6] latch=1
26-Apr-2021 13:03:39.007 FINE [https-jsse-nio-8443-exec-6] org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doClose Calling [org.apache.tomcat.util.net.NioEndpoint@3e27ba32].closeSocket([org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3f3904ed:org.apache.tomcat.util.net.SecureNioChannel@2bb2feb7:java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:8443 remote=/10.255.106.212:51956]])

嗯。我认为这个错误与我的问题无关

最后一个实际答案是配置server.xml以请求证书

<SSLHostConfig protocols="TLSv1.2" certificateVerification="required">