You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Savard <da...@gmail.com> on 2018/07/24 21:39:17 UTC

Tomcat 8.5.32 parseHost error

Hi everyone,

I just upgraded from Tomcat 8.5.23 to 8.5.32 following the required action
on the last CVE issued and I am running into a problem with some
applications. Here is the output from the catalina.out log.

24-Jul-2018 17:02:49.867 INFO [main]
org.apache.catalina.startup.Catalina.start Server startup in 44025 ms
24-Jul-2018 17:02:50.368 INFO [https-jsse-nio-8443-exec-17]
org.apache.coyote.AbstractProcessor.parseHost The host [] is not valid
 Note: further occurrences of request parsing errors will be logged at
DEBUG level.
 java.lang.IllegalArgumentException
        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:73)
        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:40)
        at
org.apache.coyote.AbstractProcessor.parseHost(AbstractProcessor.java:277)
        at
org.apache.coyote.http11.Http11Processor.prepareRequest(Http11Processor.java:1203)
        at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:776)
        at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
        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)


Any hints on what cause this problem? Is it a configuration issue or a bug?
Anyone else encountered this problem with this version or another one?

Regards,
-----------------
Daniel Savard

Re: Tomcat 8.5.32 parseHost error

Posted by Mark Thomas <ma...@apache.org>.
On July 24, 2018 9:39:17 PM UTC, Daniel Savard <da...@gmail.com> wrote:
>Hi everyone,
>
>I just upgraded from Tomcat 8.5.23 to 8.5.32 following the required
>action
>on the last CVE issued and I am running into a problem with some
>applications. Here is the output from the catalina.out log.
>
>24-Jul-2018 17:02:49.867 INFO [main]
>org.apache.catalina.startup.Catalina.start Server startup in 44025 ms
>24-Jul-2018 17:02:50.368 INFO [https-jsse-nio-8443-exec-17]
>org.apache.coyote.AbstractProcessor.parseHost The host [] is not valid
> Note: further occurrences of request parsing errors will be logged at
>DEBUG level.
> java.lang.IllegalArgumentException
>        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:73)
>        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:40)
>        at
>org.apache.coyote.AbstractProcessor.parseHost(AbstractProcessor.java:277)
>        at
>org.apache.coyote.http11.Http11Processor.prepareRequest(Http11Processor.java:1203)
>        at
>org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:776)
>        at
>org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>        at
>org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
>        at
>org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
>        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)
>
>
>Any hints on what cause this problem? Is it a configuration issue or a
>bug?
>Anyone else encountered this problem with this version or another one?
>
>Regards,
>-----------------
>Daniel Savard

Looks like the client is sending an invalid request. What is the full HTTP request (including the request line and the headers)? I'd guess at an empty host header but it is only a guess without seeing the full request.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org