я использую jHipster для внутреннего приложения панели администратора, и я часто получаю эту ошибку, которая каждый раз останавливает мой сервер.
2019-12-26 10:30:29,516 ОШИБКА [XNIO-2 задача-10] WebsocketConfiguration$2: рукопожатие не удалось из-за недопустимого заголовка обновления: null 2019-12-26 10:38:46,039 ОШИБКА [XNIO-2 I/O- 1] запрос: UT005071: Ошибка запроса Undertow HttpServerExchange{ ПОДКЛЮЧИТЬ check.best-proxies.ru:80 запрос {Host=[check.best-proxies.ru:80]} ответ {}} java.lang.IllegalArgumentException: UT000068: Servlet не удалось сопоставить путь в io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83) в io.undertow.servlet.handlers.ServletPathMatches.getServletHandlerByPath(ServletPathMatches.java:88) в io.undertow.servlet.handlers. ServletInitialHandler.handleRequest(ServletInitialHandler.java:151) на io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:65) на io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:66) на io.undertow.server.Connectors.executeRootHandler(Con nectors.java:336) в io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255) в io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136) в io .undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59) в org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) в org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler :66) в org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) в org.xnio.nio.WorkerThread.run(WorkerThread.java:561)
Поскольку jHipster генерирует множество конфигураций, единственное, что я смог найти о undertow, это этот метод:
@Override
public void customize(ConfigurableEmbeddedServletContainer container) {
MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT);
// IE issue, see https://github.com/jhipster/generator-jhipster/pull/711
mappings.add("html", MediaType.TEXT_HTML_VALUE + ";charset=utf-8");
// CloudFoundry issue, see https://github.com/cloudfoundry/gorouter/issues/64
mappings.add("json", MediaType.TEXT_HTML_VALUE + ";charset=utf-8");
container.setMimeMappings(mappings);
// When running in an IDE or with ./mvnw spring-boot:run, set location of the static web assets.
setLocationForStaticAssets(container);
/*
* Enable HTTP/2 for Undertow - https://twitter.com/ankinson/status/829256167700492288
* HTTP/2 requires HTTPS, so HTTP requests will fallback to HTTP/1.1.
* See the JHipsterProperties class and your application-*.yml configuration files
* for more information.
*/
if (jHipsterProperties.getHttp().getVersion().equals(JHipsterProperties.Http.Version.V_2_0) &&
container instanceof UndertowEmbeddedServletContainerFactory) {
((UndertowEmbeddedServletContainerFactory) container)
.addBuilderCustomizers(builder ->
builder.setServerOption(UndertowOptions.ENABLE_HTTP2, true));
}
}
Может ли кто-нибудь сказать мне, где проблема?
Заранее спасибо!
check.best-proxies.ru
- person Gaël Marziou   schedule 26.12.2019