java.net.SocketException: Address already in use

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wesomon99
    New Member
    • Jun 2007
    • 16

    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:

    Code:
    16:42:47,412 ERROR [STDERR] com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 
    
    ** BEGIN NESTED EXCEPTION ** 
    
    java.net.SocketException
    MESSAGE: java.net.SocketException: Address already in use
    
    STACKTRACE:
    
    java.net.SocketException: java.net.SocketException: Address already in use
    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
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    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.

    Comment

    Working...