473,668 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Software caused connection abort: recv failed

Hello everybody,

Using the following snippet:

<snippet>

System.setPrope rty("javax.net. ssl.trustStore" ,
"/var/keystores/somehost.keysto re");

// Create a trust manager that does not validate certificate chains
X509TrustManage r trustMgr = new X509TrustManage r() {
public void checkClientTrus ted(
X509Certificate[] arg0, String arg1)
throws CertificateExce ption {
}

public void checkServerTrus ted(
X509Certificate[] arg0,String arg1)
throws CertificateExce ption {
}

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

SSLContext context = SSLContext.getI nstance("SSL");
context.init(nu ll, new TrustManager[] { trustMgr }, null);
HttpsURLConnect ion.setDefaultS SLSocketFactory (context.getSoc ketFactory());

URL url = new URL("https://somehost/");
URLConnection con = url.openConnect ion();
con.getInputStr eam();

</snippet>
I keep getting the following error:

java.net.Socket Exception: 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 50770
Janwillem Borleffs wrote:
I keep getting the following error:

java.net.Socket Exception: 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.c om> wrote in message news:<41******* *************** *@news.euronet. nl>...
Janwillem Borleffs wrote:
I keep getting the following error:

java.net.Socket Exception: 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.k eyStore, 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
30355
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 servers: java.net.SocketException: No buffer space available (maximum connections reached?): recv failed
0
4999
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; --> com.mysql.jdbc.PreparedStatement@1f11507: select news_id,DATE_FORMAT(news_date ,'%d %m %y')as Hmerominia , news_title, news_decr from news sql error:java.sql.SQLException: Communication link failure: java.net.SocketException, underlying cause: Software caused connection...
0
2038
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
10507
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 through all the abstraction layers and such. Anyways here is my issue. The application sends a request for data to the server and the server responds. However, the server then sends a TCP Fin message to close the connection which I can see through...
0
5883
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. Basically what im trying to do is the following: - a client connect to a server using sslsocket. - server receive the connection and reply with the first part of the data and keep the connection open. - then client receive the reply and request for...
4
1852
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 databases work. I was told that I needed to have the driver Microsoft ODBC for Oracle, which I already have. Please help, i wasted so much time already trying to figure this out with zero database experience. Thank you very much.
2
1853
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 'pat' failed'. pat is our Enterprise Resource Planning software which the Access is connected to. I've checked the connection of the software and everything appears to be regular. I also tried with backup copies of Access and the same thing happens....
2
3312
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 when the SQL cluster is failed over and is running on another node the following error is displayed in the web page. A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing...
10
5624
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. When the application run continuously database connection is getting closed after 21 Hours. Error in the log file is And i suppose if we don't query the database, database connection will get closed after 8 hours...
0
8382
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8586
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1787
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.