You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/01/30 09:30:20 UTC

[Bug 64105] New: SSL socket handling exception

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

            Bug ID: 64105
           Summary: SSL socket handling exception
           Product: Tomcat 9
           Version: 9.0.30
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: costing@gmail.com
  Target Milestone: -----

Hi,

I see frequent errors like the ones below in my instance. If I understand it
correctly (http://hg.openjdk.java.net/jdk/jdk/rev/01d8eae542ff) it is related
to reusing connections and while the behaviour is slightly different in the
latest JDK it is still not solved. Could this be handled differently on the web
server side?

Thanks and cheers,

.costin

Java 13.0.2 exception:

Jan 30, 2020 10:10:45 AM org.apache.tomcat.util.net.NioEndpoint$SocketProcessor
doRun
SEVERE: Error running socket processor
java.lang.NullPointerException
        at java.base/sun.security.ssl.HKDF.extract(HKDF.java:93)
        at java.base/sun.security.ssl.HKDF.extract(HKDF.java:119)
        at
java.base/sun.security.ssl.ServerHello.setUpPskKD(ServerHello.java:1203)
        at
java.base/sun.security.ssl.ServerHello$T13ServerHelloProducer.produce(ServerHello.java:559)
        at
java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:440)
        at
java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.goServerHello(ClientHello.java:1252)
        at
java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.consume(ClientHello.java:1188)
        at
java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:851)
        at
java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:812)
        at
java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
        at
java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1260)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1247)
        at
java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1192)
        at
org.apache.tomcat.util.net.SecureNioChannel.tasks(SecureNioChannel.java:443)
        at
org.apache.tomcat.util.net.SecureNioChannel.handshakeUnwrap(SecureNioChannel.java:507)
        at
org.apache.tomcat.util.net.SecureNioChannel.handshake(SecureNioChannel.java:238)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
        at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:830)

Java 12.0.2 exception:
Jan 30, 2020 10:06:06 AM org.apache.tomcat.util.net.NioEndpoint$SocketProcessor
doRun
SEVERE: Error running socket processor
java.util.NoSuchElementException: No value present
        at java.base/java.util.Optional.get(Optional.java:148)
        at
java.base/sun.security.ssl.ServerHello$T13ServerHelloProducer.produce(ServerHello.java:547)
        at
java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
        at
java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.goServerHello(ClientHello.java:1225)
        at
java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.consume(ClientHello.java:1161)
        at
java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:852)
        at
java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:813)
        at
java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
        at
java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1074)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1061)
        at
java.base/java.security.AccessController.doPrivileged(AccessController.java:689)
        at
java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1008)
        at
org.apache.tomcat.util.net.SecureNioChannel.tasks(SecureNioChannel.java:443)
        at
org.apache.tomcat.util.net.SecureNioChannel.handshakeUnwrap(SecureNioChannel.java:507)
        at
org.apache.tomcat.util.net.SecureNioChannel.handshake(SecureNioChannel.java:238)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
        at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:835)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64105] SSL socket handling exception

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64105

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Sorry, no. That is a JDK bug. It looks like explicitly disabling TLSv1.3 should
avoid it. If you need TLSv1.3, switch to using OpenSSL for the encryption.

The users mailing list is the place to seek further advice on this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64105] SSL socket handling exception

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64105

--- Comment #2 from Dan Armbrust <da...@gmail.com> ---
FYI
https://bugs.openjdk.java.net/browse/JDK-8241248

https://stackoverflow.com/questions/61650050/null-pointer-in-java-nio-sso-processor

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org