[Bug 5446] New: Get a BindException opening a server socket from java

Wine Bugs wine-bugs at winehq.org
Fri Jun 16 04:50:49 CDT 2006


           Summary: Get a BindException opening a server socket from java
           Product: Wine
           Version: 0.9.2.
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-binary
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: des at icandriveatractor.com

I found this problem running the Buffalow LinkTheater application under Linux.
When I run the app a java.net.BindException is thrown while trying to open a
listening socket for HSQLDB. So I made a simple test java program and found the
same problem. 
It tries to open a ServerSocket on a given port. It runs fine under the JVM but
not with wine. So the following command works fine:

java com.betplan.giles.tool.TestServerSocket <port>

But when I do:

wine java com.betplan.giles.tool.TestServerSocket <port>

the following exception is thrown:

Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind

I've pasted the sample code below and I tested it using java version 1.5.0_07

import java.net.ServerSocket;
import java.net.Socket;
import java.io.*;

public class TestServerSocket
    public TestServerSocket( int port )
	    throws IOException
        System.out.println("Creating new server socket on port: " + port);
	ServerSocket serverSocket = new ServerSocket(port);

    public static void main( String[] args )
      throws IOException
        new TestServerSocket(Integer.parseInt(args[0]));

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the wine-bugs mailing list