исключение весеннего облака выдает ошибку при разборе заголовка HTTP-запроса - PullRequest
0 голосов
/ 30 мая 2019

Мой весенний облачный проект выбрасывает исключение, но я не могу его решить.Вот вывод консоли производителя.В консоли пользователя нет исключений.

2019-05-30 08:39:42.362 DEBUG 1155 --- [8899-Acceptor-0] o.apache.tomcat.util.threads.LimitLatch  : Counting up[http-nio-8899-Acceptor-0] latch=2
2019-05-30 08:39:42.365 DEBUG 1155 --- [nio-8899-exec-6] o.a.tomcat.util.net.SocketWrapperBase    : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Read from buffer: [0]
2019-05-30 08:39:42.365 DEBUG 1155 --- [nio-8899-exec-6] org.apache.tomcat.util.net.NioEndpoint   : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Read direct from socket: [130]
2019-05-30 08:39:42.365 DEBUG 1155 --- [nio-8899-exec-6] o.a.coyote.http11.Http11InputBuffer      : Received [GET /producer/hello/world HTTP/1.1
Accept: */*
User-Agent: Java/1.8.0_201
Host: localhost:8899
Connection: keep-alive

]
2019-05-30 08:39:42.366 DEBUG 1155 --- [nio-8899-exec-6] o.a.c.authenticator.AuthenticatorBase    : Security checking request GET /producer/hello/world
2019-05-30 08:39:42.366 DEBUG 1155 --- [nio-8899-exec-6] org.apache.catalina.realm.RealmBase      :   No applicable constraints defined
2019-05-30 08:39:42.366 DEBUG 1155 --- [nio-8899-exec-6] o.a.c.authenticator.AuthenticatorBase    :  Not subject to any constraint
2019-05-30 08:39:42.367 DEBUG 1155 --- [nio-8899-exec-6] org.apache.tomcat.util.http.Parameters   : Set encoding to UTF-8
2019-05-30 08:39:42.367 DEBUG 1155 --- [nio-8899-exec-6] o.s.web.servlet.DispatcherServlet        : GET "/producer/hello/world", parameters={}
2019-05-30 08:39:42.368 DEBUG 1155 --- [nio-8899-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public java.lang.String com.kutesmart.sso.security.producer.controller.HelloController.echo()
2019-05-30 08:39:42.369 DEBUG 1155 --- [nio-8899-exec-6] m.m.a.RequestResponseBodyMethodProcessor : Using 'text/plain', given [*/*] and supported [text/plain, */*, text/plain, */*, application/json, application/*+json, application/json, application/*+json]
2019-05-30 08:39:42.369 DEBUG 1155 --- [nio-8899-exec-6] m.m.a.RequestResponseBodyMethodProcessor : Writing ["hello world"]
2019-05-30 08:39:42.370 DEBUG 1155 --- [nio-8899-exec-6] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2019-05-30 08:39:42.371 DEBUG 1155 --- [nio-8899-exec-6] o.a.tomcat.util.net.SocketWrapperBase    : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Read from buffer: [0]
2019-05-30 08:39:42.372 DEBUG 1155 --- [nio-8899-exec-6] org.apache.tomcat.util.net.NioEndpoint   : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Read direct from socket: [0]
2019-05-30 08:39:42.372 DEBUG 1155 --- [nio-8899-exec-6] o.apache.coyote.http11.Http11Processor   : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Status in: [OPEN_READ], State out: [OPEN]
2019-05-30 08:39:44.717 DEBUG 1155 --- [nio-8899-exec-7] o.apache.tomcat.util.threads.LimitLatch  : Counting down[http-nio-8899-exec-7] latch=2
2019-05-30 08:39:44.717 DEBUG 1155 --- [nio-8899-exec-7] org.apache.tomcat.util.net.NioEndpoint   : Socket: [org.apache.tomcat.util.net.NioChannel@25ca009d:java.nio.channels.SocketChannel[closed]] closed
2019-05-30 08:39:52.405 DEBUG 1155 --- [nio-8899-exec-8] o.a.tomcat.util.net.SocketWrapperBase    : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@375ea56b:org.apache.tomcat.util.net.NioChannel@24cdaf45:java.nio.channels.SocketChannel[connected local=/localhost:8899 remote=/localhost:49954]], Read from buffer: [0]
2019-05-30 08:39:52.406 DEBUG 1155 --- [nio-8899-exec-8] o.apache.coyote.http11.Http11Processor   : Error parsing HTTP request header

java.io.EOFException: null
    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1206) ~[tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1140) ~[tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:729) ~[tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:352) ~[tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294) ~[tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) [tomcat-embed-core-9.0.16.jar:9.0.16]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.16.jar:9.0.16]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_201]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_201]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.16.jar:9.0.16]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]
2019-05-30 09:02:05.256 DEBUG 1207 --- [nio-8899-exec-4] o.apache.coyote.http11.Http11Processor   : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@57be8994:org.apache.tomcat.util.net.NioChannel@6e4dc02d:java.nio.channels.SocketChannel[connected local=/172.16.124.196:8899 remote=/localhost:50169]], Status in: [OPEN_READ], State out: [CLOSED]
2019-05-30 09:02:05.256 DEBUG 1207 --- [nio-8899-exec-4] o.apache.tomcat.util.threads.LimitLatch  : Counting down[http-nio-8899-exec-4] latch=1
2019-05-30 09:02:05.256 DEBUG 1207 --- [nio-8899-exec-4] org.apache.tomcat.util.net.NioEndpoint   : Socket: [org.apache.tomcat.util.net.NioChannel@6e4dc02d:java.nio.channels.SocketChannel[closed]] closed

Вот мои свойства yml

#-------- eureka config start ------------
eureka:
  client:
    service-url:
      default-zone: http://localhost:8761/eureka/
    healthcheck:
      enabled: false
  instance:
    lease-expiration-duration-in-seconds: 90
    lease-renewal-interval-in-seconds: 30

#------- start mybatis config ---------

Я хочу знать причину и как это исправить.Большое спасибо.

помимо версии весеннего облака - Greenwich.RELEASE

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...