You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Wee <pe...@gmail.com> on 2019/08/07 03:51:31 UTC

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun

Hi,

we are using tomcat version 8.5.20 and we encounter the following exceptions

24-Jul-2019 23:24:45.398 SEVERE [https-jsse-nio-8443-exec-104]
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
 java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:244)
at org.apache.tomcat.util.net.TLSClientHelloExtractor.skipBytes(TLSClientHelloExtractor.java:221)
at org.apache.tomcat.util.net.TLSClientHelloExtractor.<init>(TLSClientHelloExtractor.java:118)
at org.apache.tomcat.util.net.SecureNioChannel.processSNI(SecureNioChannel.java:276)
at org.apache.tomcat.util.net.SecureNioChannel.handshake(SecureNioChannel.java:174)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

and it happened a lot of times in a day everyday. However, when
upgrade tomcat to version 8.5.43 (current latest), the exception no
longer happened.

We would like to understand better which patch that fix the problem
above. Can anyone give links to the fixes?

Thank you and apache tomcat is a great product!

Jason

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


Re: org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun

Posted by Mark Thomas <ma...@apache.org>.
On 07/08/2019 04:51, Jason Wee wrote:
> Hi,
> 
> we are using tomcat version 8.5.20 and we encounter the following exceptions
> 
> 24-Jul-2019 23:24:45.398 SEVERE [https-jsse-nio-8443-exec-104]
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
>  java.lang.IllegalArgumentException
> at java.nio.Buffer.position(Buffer.java:244)
> at org.apache.tomcat.util.net.TLSClientHelloExtractor.skipBytes(TLSClientHelloExtractor.java:221)
> at org.apache.tomcat.util.net.TLSClientHelloExtractor.<init>(TLSClientHelloExtractor.java:118)
> at org.apache.tomcat.util.net.SecureNioChannel.processSNI(SecureNioChannel.java:276)
> at org.apache.tomcat.util.net.SecureNioChannel.handshake(SecureNioChannel.java:174)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
> at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> 
> and it happened a lot of times in a day everyday. However, when
> upgrade tomcat to version 8.5.43 (current latest), the exception no
> longer happened.
> 
> We would like to understand better which patch that fix the problem
> above. Can anyone give links to the fixes?

See:
https://bz.apache.org/bugzilla/show_bug.cgi?id=61948

https://github.com/apache/tomcat/commit/6952814e58620719693311339bb81faa577958bb#diff-a074df3d24dd73c34d5202691f788fc9

Mark

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