Best I can do here is to say the tests work for me on multiple platforms
with default JDK installs.
That points to an environmental issue with your setup but not sure what.
Mark
On 10/07/2023 16:07, Christopher Schultz wrote:
All,
Ping on this one. I'd like to be able to vote without an [*]. :)
-chris
On 7/7/23 10:00, Christopher Schultz wrote:
All,
I'm seeing a unit test failure and I'm not sure it's due to one of the
"expected in my environment" cases:
This is
TEST-org.apache.tomcat.websocket.TestWsWebSocketContainerSSL.NIO.txt:
Testsuite: org.apache.tomcat.websocket.TestWsWebSocketContainerSSL
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.58 sec
------------- Standard Error -----------------
06-Jul-2023 16:06:48.236 INFO [main]
org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case
[testConnectToServerEndpointSSL]
06-Jul-2023 16:06:49.234 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-1"]
06-Jul-2023 16:06:49.749 INFO [main]
org.apache.tomcat.util.net.AbstractEndpoint.logCertificate Connector
[https-jsse-nio-127.0.0.1-auto-1], TLS virtual host [_default_],
certificate type [UNDEFINED] configured from keystore
[/mnt/ephemeral0/cschultz/projects/apache/apache-tomcat/tarball/apache-tomcat-8.5.91-src/test/org/apache/tomcat/util/net/localhost-rsa.jks] using alias [tomcat] with trust store [/mnt/ephemeral0/cschultz/projects/apache/apache-tomcat/tarball/apache-tomcat-8.5.91-src/test/org/apache/tomcat/util/net/ca.jks]
06-Jul-2023 16:06:49.760 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting
service [Tomcat]
06-Jul-2023 16:06:49.761 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
engine: [Apache Tomcat/8.5.91]
06-Jul-2023 16:06:50.124 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-1-43671"]
06-Jul-2023 16:06:50.377 INFO [main]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-1-43671"]
06-Jul-2023 16:06:50.381 INFO [main]
org.apache.catalina.core.StandardService.stopInternal Stopping service
[Tomcat]
06-Jul-2023 16:06:50.394 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-1-43671"]
06-Jul-2023 16:06:50.421 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-1-43671"]
------------- ---------------- ---------------
Testcase: testConnectToServerEndpointSSL took 2.494 sec
Caused an ERROR
The HTTP request to initiate the WebSocket connection to
[wss://localhost:43671/echoAsync] failed
javax.websocket.DeploymentException: The HTTP request to initiate the
WebSocket connection to [wss://localhost:43671/echoAsync] failed
at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServerRecursive(WsWebSocketContainer.java:428)
at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:170)
at
org.apache.tomcat.websocket.TestWsWebSocketContainerSSL.testConnectToServerEndpointSSL(TestWsWebSocketContainerSSL.java:64)
Caused by: java.util.concurrent.ExecutionException:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol
is disabled or cipher suites are inappropriate)
at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$WrapperFuture.get(AsyncChannelWrapperSecure.java:489)
at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServerRecursive(WsWebSocketContainer.java:320)
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate
protocol (protocol is disabled or cipher suites are inappropriate)
at
sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
at
sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
at
sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
at
sun.security.ssl.SSLEngineImpl.beginHandshake(SSLEngineImpl.java:97)
at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$WebSocketSslHandshakeThread.run(AsyncChannelWrapperSecure.java:347)
I see identical (except for port-number) errors for NIO2 and APR.
Is this a race, or do I have some protocol disabled on my end that is
causing this failure?
The JRE for unit testing is openjdk version "1.8.0_292" OpenJDK
Runtime Environment (build 1.8.0_292-8u292-b10-0+deb9u1-b10) OpenJDK
64-Bit Server VM (build 25.292-b10, mixed mode). The OS is Linux,
kernel Linux 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21)
x86_64 GNU/Linux.
Any suggestions for investigation?
-chris
On 7/6/23 11:31, Christopher Schultz wrote:
The proposed Apache Tomcat 8.5.91 release is now available for voting.
The notable changes compared to 8.5.90 are:
- Add ContextNamingInfoListener, a listener which creates context naming
information environment entries.
- Add PropertiesRoleMappingListener, a listener which populates the
context's role mapping from a properties file.
Along with lots of other bug fixes and improvements.
For full details, see the changelog:
https://nightlies.apache.org/tomcat/tomcat-8.5.x/docs/changelog.html
It can be obtained from:
https://dist.apache.org/repos/dist/dev/tomcat/tomcat-8/v8.5.91/
The Maven staging repo is:
https://repository.apache.org/content/repositories/orgapachetomcat-1446
The tag is:
https://github.com/apache/tomcat/tree/8.5.91/
d5dc384e752d54fcb531c0e86b2ee1ee73b1404e
The proposed 8.5.91 release is:
[ ] Broken - do not release
[ ] Stable - go ahead and release as 8.5.91 (stable)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org