Skip to main content
Space Cadet
May 22, 2024 11:12 AM UTC
Question

NL-NETWORK-01- java.net.SocketException: Network is unreachable: no further information

Hi All , 

I am  able to record making neo load as proxy testing .net Desk top application. When  I am trying to replay. I am getting  below error message 

Error detected by NeoLoad

Error Code: NL-NETWORK-01
Message: Network error: An IO error occurred sending the request.
Details: java.net.SocketException: Network is unreachable: no further information

 

when looked at logs I am seeing below error message I am not able to connect both the error messages.

My question 

1:when i am using just replay with just one user  why I am getting socket exception error which normally  comes  when app server is over loaded .

2.By looking at the error from log below .Is it safe to assume it’s a SSL handshake issue BY adding application certificate .cer  to Neoload will resolve my issue .I am confused by sending usage report ? What are the options i can explore to resolve this issue . Your time and help is much appreciated 

 

ERROR - neoload.usage.reporting: Error while sending usage report : javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)
    at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
    at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at com.neotys.nl.controller.bi.a(bi.java:97)
    at com.neotys.nl.controller.bi.b(bi.java:167)
    at com.neotys.nl.controller.bi.d(bi.java:227)
    at com.neotys.nl.controller.bi.c(bi.java:197)
    at com.neotys.nl.controller.bi.lambda$sendInfos$0(bi.java:155)
    at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    at java.base/sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at java.base/sun.security.validator.Validator.validate(Unknown Source)
    at java.base/sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
    at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
    at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    ... 26 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
    at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    at java.base/java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 32 more

    1 reply

    Employee
    May 23, 2024 9:29 AM UTC

    Hello, those two errors are not related at all. The first one is a network issue when NeoLoad is not able to reach an IP network. Please look at that request definition like hostname/IP and check if you can reach that IP from your load generator machine.

    By default NeoLoad relies on the system to route the traffic to the right Network interface. Unless you have modified that behavior in the Load generator settings that should still be the default rule. In other words this error may happen when the wrong NIC is used to reach a specific network. But this should not happen when the system routes the traffic to the right NIC.

     

    The second error is related to a wrong certificate chain. My guess is that you have setup an Internet proxy in the NeoLoad preferences and this proxy is decrypting the TLS traffic. Since your proxy certificate is probably unknown on NeoLoad side the connection is not secured anymore hence the error message.

    To fix that certificate issue you may look at this KB