473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Software caused connection abort: recv failed

Hello everybody,

Using the following snippet:

<snippet>

System.setProperty("javax.net.ssl.trustStore",
"/var/keystores/somehost.keystore");

// Create a trust manager that does not validate certificate chains
X509TrustManager trustMgr = new X509TrustManager() {
public void checkClientTrusted(
X509Certificate[] arg0, String arg1)
throws CertificateException {
}

public void checkServerTrusted(
X509Certificate[] arg0,String arg1)
throws CertificateException {
}

public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
}
};

SSLContext context = SSLContext.getInstance("SSL");
context.init(null, new TrustManager[] { trustMgr }, null);
HttpsURLConnection.setDefaultSSLSocketFactory(cont ext.getSocketFactory());

URL url = new URL("https://somehost/");
URLConnection con = url.openConnection();
con.getInputStream();

</snippet>
I keep getting the following error:

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

I googled for the cause, only to find that many people have the same problem
with nothing conclusive.

Anyone knows what's causing the problem?
TIA,
JW

Jul 17 '05 #1
3 50737
Janwillem Borleffs wrote:
I keep getting the following error:

java.net.SocketException: Software caused connection abort: recv
failed
I googled for the cause, only to find that many people have the same
problem with nothing conclusive.

Anyone knows what's causing the problem?


I do now.... Problem fixed.
JW

Jul 17 '05 #2
What was the solution?
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:<41***********************@news.euronet.nl>.. .
Janwillem Borleffs wrote:
I keep getting the following error:

java.net.SocketException: Software caused connection abort: recv
failed
I googled for the cause, only to find that many people have the same
problem with nothing conclusive.

Anyone knows what's causing the problem?


I do now.... Problem fixed.
JW

Jul 17 '05 #3
Colin Mackie wrote:
What was the solution?


The private key was missing, so the certificate chain was sent without any
authentication. After defining the pkcs12 file as the
javax.net.ssl.keyStore, the certificates where applied along with the
private key...
JW

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: daniel.shaya | last post by:
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server (4cpu 8Gb memory). Periodically the following exceptions occurs in the...
0
by: Theodore | last post by:
Hello to everybody i am new to this forum and i have an important problem with sql statements in my website. why do i get these error messages , can anybody tell me; -->...
0
by: rocky9999 | last post by:
hi, i have one problem. when i go to indiatimes chat room after loading jave applet its giving prolem software caused connection abort recv failed. can any one give me solution for this. thanks
2
by: jlparise | last post by:
Hey everyone, I am really rusty on my Java socket programming and am having some confusing problems. I don't need the code debugged(even though it doesn't work). I'm not going to make you dig...
0
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. ...
4
by: sakanet | last post by:
Hi, I have a file "filename.mdb" i am trying to open this with MS Access 2003 and I get the error message: ODBC--Connection to 'accessODBC' failed. Unfortunately I have no knowledge about how...
2
by: Aorsi | last post by:
Hello all, Having a problem with one of the Access programs we use to plan the production. Suddenly today when we click on any button to get information the txtbox appears 'ODBC - connection to...
2
by: Robin9876 | last post by:
In an ASP.Net V2 application that has the connection string as "Data Source=MySQLClusterInstance; Initial Catalog=myDB; User ID=aUser; Password=aPassword; Persist Security Info=True;" Then...
10
Dheeraj Joshi
by: Dheeraj Joshi | last post by:
My colleague is facing an issue with MySQL. I am asking question on behalf of him. He has created an application and they use MySQL as database. The application is in Java and they use NHibernate....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.