Page tree
Skip to end of metadata
Go to start of metadata

By Christopher Alton.

This article covers various java.net errors seen when using JAVA automation tools.



One of the more frustrating issues to face when working with automation, is when your automation tools start to throw errors. One of the more common errors that you may have, are the java.net errors. This article will cover the more common java.net errors, and will be updated frequently.

 

INFO  [o.a.h.impl.execchain.RetryExec] I/O exception (java.net.SocketException)
caught when processing request to {s}->https://YOUR CLOUD.perfectomobile.com:443:
Software caused connection abort: recv failed

DEBUG [o.a.h.impl.execchain.RetryExec]
Software caused connection abort: recv failed

java.net.SocketException:
Software caused connection abort: recv failed


This is a very common error. When you see this error, usually this means that your automation tool is hitting a firewall/proxy or some other security setting or appliance. This security is preventing your automation tool from reaching its destination, and the session is aborted.

How to fix this JAVA issue?

Troubleshooting steps in this matter are to first make sure that your JAVA is up to date. For TLS 1.2, TLS 1.1 and leagacy support of TLS 1.0 and SSH 3.0, you will need JAVA 8. If you are running JAVA 7 and cannot move to JAVA 8, you need to define JAVA to use TLS 1.1 and TLS 1.2.

The raw property to set TLS enablement for JAVA 7, is as follows.

-Dhttps.protocols=TLS.1,TLSv1.1,TLS,v1.2

This code samples hows how it would work in eclipse.

System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

If you have tried this solution, and are still facing an issue with this error, please contact the Perfecto support team.