[jacorb-bugs] [Bug 945] New: BindException:java.net.BindException:PortRangeSocketFactory: no free port between

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Mon Mar 4 10:51:37 CET 2013


http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=945

           Summary: BindException:java.net.BindException:PortRangeSocketFact
                    ory: no free port between
           Product: JacORB
           Version: 2.3.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: ORB
        AssignedTo: jacorb-bugs at lists.spline.inf.fu-berlin.de
        ReportedBy: sauravraj007 at gmail.com


Hi,

We are running a client-server application in a distributed environment where
server is running on Solaris OS.We have used jacORB 2.3.0 as a tool to
implement CORBA communication between client and server.

We have configured the jacorb.properties file so that the client and server
process can use the specified port range.In all we have three processes client,
Naming Server and the Main Server.Each process has its own jacorb.properties
file associated with it where it has been configured to use the specified port
range to create sockets.

The following properties is been configured:
jacorb.net.socket_factory=org.jacorb.orb.factory.DefaultSocketFactory
jacorb.net.server_socket_factory=org.jacorb.orb.factory.DefaultServerSocketFactory
jacorb.net.socket_factory=org.jacorb.orb.factory.PortRangeSocketFactory
jacorb.net.server_socket_factory=org.jacorb.orb.factory.PortRangeServerSocketFactory
jacorb.net.socket_factory.port.min=35000
jacorb.net.socket_factory.port.max=35599
jacorb.net.server_socket_factory.port.min=35000
jacorb.net.server_socket_factory.port.max=35599

When we enabled the jacorb logs for the server process we saw this the
following exception:

jacorb.orb.delegate:DEBUG: Delegate released!
jacorb.orb.socketfac:WARN: Cannot bind socket between ports 35000 and 35599 to
target 166.59.140.57:35002
jacorb.orb.iiop:DEBUG: Exception
java.net.BindException: PortRangeSocketFactory: no free port between 35000 and
35599
        at
org.jacorb.orb.factory.PortRangeSocketFactory.doCreateSocket(PortRangeSocketFactory.java:167)
        at
org.jacorb.orb.factory.AbstractSocketFactory.createSocket(AbstractSocketFactory.java:54)
        at
org.jacorb.orb.iiop.ClientIIOPConnection.createSocket(ClientIIOPConnection.java:313)
        at
org.jacorb.orb.iiop.ClientIIOPConnection.connect(ClientIIOPConnection.java:160)
        at
org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:934)
        at
org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:900)
        at
org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:323)
        at
org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:304)
        at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:1024)
        at org.jacorb.orb.Delegate.invoke(Delegate.java:939)

We also checked the lsof output to check if the ports in the range are
exhausted but we did not find any.

I tried to search the bug reports in bugzilla about such an issue but i did not
find any.It seems as if there is a bug in jacorb 2.3.0 where even if the port
is available it is not able to find any to create sockets.


-- 
Configure bugmail: http://www.jacorb.org/cgi-bin/bugzilla/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 jacorb-bugs mailing list