473,320 Members | 2,112 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,320 software developers and data experts.

java.net.SocketException: Address already in use

Hello, I have a JBoss web application (v4.04GA), run on an Apache Tomcat HTTP server (v5.5.17). It connects with a MySQL database (v4.1.10). My web application takes an XML file, creates a CSV file from database entries, and returns the file to the user.

This has worked well in general. However, a particular file is giving me problems. It compiles a total of 1800 entries from the database, and before it returns the CSV file, it gives the following error:

Expand|Select|Wrap|Line Numbers
  1. 16:42:47,412 ERROR [STDERR] com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 
  2.  
  3. ** BEGIN NESTED EXCEPTION ** 
  4.  
  5. java.net.SocketException
  6. MESSAGE: java.net.SocketException: Address already in use
  7.  
  8. STACKTRACE:
  9.  
  10. java.net.SocketException: java.net.SocketException: Address already in use
  11.  
This happens at about 1000 entries into the compilation, while going through the same action that has successfully gone through before. If I change the order around of what I am requesting, it still fails. If I reduce the number of entries, it works fine.

This is largest file I have tried creating, but would this make sense for why it would not work?

Any tips on this error message would be appreciated. Thanks, Wes
Oct 9 '07 #1
1 4489
Motoma
3,237 Expert 2GB
I have moved this question to the Java forum, where I am sure you will get more help.

Is that a full stack trace? That's the smallest stack trace I have ever seen.

It might also help if you posted a small section of the relevant code, or were able to produce a simple test case.
Oct 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Piotr Bieniek | last post by:
Hello, I have a problem with UDP sockets. It concerns UdpClient class as well. It throws strange exceptions on subsequent Send calls. Exception is SocketException with native error code 10049. I...
0
by: ruhunu Gamarala | last post by:
Hi, I get the following exception periodically. does anybody what is the reason for it to throw this exception? I really appriciate if anyone can help me on this. thanks, Chinthaka at...
0
by: OvErboRed | last post by:
I have a program that repeatedly opens and closes TCP connections to a host on the same computer: while (true) { using (TcpClient client = new TcpClient("localhost", 54321)) { using (Stream...
0
by: Shaun Camilleri | last post by:
Hi, I have a Windows Service which serves an object for remoting. Everything runs Ok until an (any) exception is raised by this remotable object. When that is the case a SocketException is raised...
0
by: ZR | last post by:
I am writing two applications which needs to (among other things) communicate through network, so one of them is a client and the other one is a server. I have used asynchronous socket examples...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
0
by: sivasankarmathuraju | last post by:
Hi! I am using: Java 2 SDK 1.4.0 Standard Edition on Windows XP I have one java client application and one gateway that is in C language runing on the same machine. The server creates a...
4
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.