Sometimes my WIFI internet connection at home stutters and I found that two
of the SslConfigurationTest tests fail if my internet connection goes down.
Not sure if that helps explain some of the spuriously failing test cases
some of us occasionally see. Thought I should share.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.logging.log4j.core.net.ssl.SslConfigurationTest
ERROR StatusLogger The key cannot be recovered (e.g. the given password is
wrong)
Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 15.015 sec
<<< FAILURE! - in org.apache.logging.log4j.core.net.ssl.SslConfigurationTes
t
connectionFailsWithoutValidServerCertificate(org.apache.logging.log4j.core.net.ssl.SslConfigurationTest)
Time elapsed: 14.948 sec <<< ERROR!
java.net.UnknownHostException: login.yahoo.com
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:407)
at
sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at
org.apache.logging.log4j.core.net.ssl.SslConfigurationTest.connectionFailsWithoutValidServerCertificate(SslConfigurationTest.java:53)
emptyConfigurationHasDefaultTrustStore(org.apache.logging.log4j.core.net.ssl.SslConfigurationTest)
Time elapsed: 0.055 sec <<< ERROR!
java.net.UnknownHostException: login.yahoo.com
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:407)
at
sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at
org.apache.logging.log4j.core.net.ssl.SslConfigurationTest.emptyConfigurationHasDefaultTrustStore(SslConfigurationTest.java:43)
Results :
Tests in error:
SslConfigurationTest.connectionFailsWithoutValidServerCertificate:53 ≫
UnknownHost
SslConfigurationTest.emptyConfigurationHasDefaultTrustStore:43 ≫
UnknownHost l...
Tests run: 4, Failures: 0, Errors: 2, Skipped: 0
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 48.157s
[INFO] Finished at: Mon Jul 13 21:19:35 JST 2015