Unable to bind socket: Address already in use

Hi,
I get the following error whenever I start my Application Server on Linux machine.
If I deploy the EJB application onto a OC4J instance, the server is refusing the connection by throwing Connection Refused error.
Any insight about this issue will be helpful.
Thanks,
Mohan
04/07/08 17:14:42 Error starting ORMI-Server. Unable to bind socket: Address already in use
04/07/08 17:14:44 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
04/07/08 17:14:44 java.lang.NullPointerException
04/07/08 17:14:44 at com.evermind.server.rmi.RMIServer.run(RMIServer.java:470)
04/07/08 17:14:44 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasabl
eResourcePooledExecutor.java:186)
04/07/08 17:14:44 at java.lang.Thread.run(Thread.java:534)

have you checked to see what is running before you start your oracle app server on your ports? you can use netstat for one

Similar Messages

  • Error starting ORMI-Server.  Unable to bind socket: Address already in use:

    hi,
    I run the folowing command "start_oc4j.bat" to start Oc4j.
    It starts successfully.
    Then I start "BPEL PM Server".
    I get the following error,
    "Error starting ORMI-Server. Unable to bind socket: Address already in use: JVM_Bind".
    I understand the above errror because both of them are trying to bind to the same port. And both of them are trying to start ORMI server. Can some one suggest how to get rid of this problem.
    I tried giving different port numbers for them, but that did not work. Let me know, how to over come this problem.
    with regards
    shaila

    You may have another OC4J running on your computer.
    You should change the port number in the file config/rmi.xml.

  • Ipv4 mapped addresses bind problem: address already in use.

    Hello. It's me again with another, may be newbie, question.
    This time I observe different behavior binding different type of ip addresses on tcp sockets. For instance
    - when I bind ipv4 mapped addresses, if there is a remaining old socket in TIME_WAIT state from a previous run
    I get the error 'Address already in use', event with SO_REUSEADDR set.
    - when I bind another type of ipv6 or just ipv4 addresses. if there if a remaining old socket in TIME_WAIT state from
    a previous run, the bind is successful (SO_REUSEADDR is set).
    How can be explained this behavior?
    Thanks a lot.
    Details
    =======
    I made a small program to test this. This program:
    - dump the addresses to be used in bind() and connect()
    - creates a LISTEN SOCKET calling
    - socket(AF_INET6, SOCK_STREAM, 0)
    - fcntl(F_SETFD, fcntl(F_GETFD) | FD_CLOEXEC)
    - fcntl(F_SETFL, fcntl(F_GETFL) | O_NONBLOCK),
    - setsockopt(SO_REUSEADDR),
    - setsockopt(SO_KEEPALIVE),
    - setsockopt(TCP_NODELAY),
    - bind()
    - listen()
    - creates a CONNECTING SOCKET calling
    - socket(AF_INET6, SOCK_STREAM, 0)
    - fcntl(F_SETFD, fcntl(F_GETFD) | FD_CLOEXEC)
    - fcntl(F_SETFL, fcntl(F_GETFL) | O_NONBLOCK),
    - setsockopt(SO_REUSEADDR),
    - setsockopt(SO_KEEPALIVE),
    - setsockopt(TCP_NODELAY),
    - connect()
    - creates a ACCEPTED SOCKET calling
    - accept()
    - fcntl(F_SETFD, fcntl(F_GETFD) | FD_CLOEXEC)
    - fcntl(F_SETFL, fcntl(F_GETFL) | O_NONBLOCK),
    - setsockopt(SO_REUSEADDR),
    - setsockopt(SO_KEEPALIVE),
    - setsockopt(TCP_NODELAY),
    - issue a std::system( "netstat -an | grep 10329" )
    - wait with select() for a write event in the CONNECTING SOCKET
    - wait with select() for a write event in the ACCEPTED SOCKET
    - close the accepted socket
    - close the connecting socket
    - close the listen socket
    - issue another std::system( "netstat -an | grep 10329" )
    - exit(0)
    Note: please don't get confused with my notation of addresses, the last component, after the last colon, is the port.
    I run it with ipv4 mapped listen address, with this result:
    $ ./test_reuseaddr listen_address=0.0.0.0:10329 connect_address=127.0.0.1:10329
    Listener in *'::ffff:0.0.0.0:10329'*
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    Connect to '::ffff:127.0.0.1:10329'
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 7f 00 00 01 00 00 00 00 00 00 00 00 |................|
    Creating listen socket
    Creating connecting socket
    Creating accepted socket
    netstat -an | grep 10329
    *.10329 *.* 0 0 49152 0 LISTEN
    127.0.0.1.35114 127.0.0.1.10329 49152 0 49152 0 ESTABLISHED
    127.0.0.1.10329 127.0.0.1.35114 49152 0 49152 0 ESTABLISHED
    Closing connecting socket
    Closing accepted socket
    Closing listen socket
    netstat -an | grep 10329
    *127.0.0.1.10329 127.0.0.1.35114 49152 0 49152 0 TIME_WAIT*
    Immediately run it again the same way, with this result (Address already in use):
    $ ./test_reuseaddr listen_address=0.0.0.0:10329 connect_address=127.0.0.1:10329
    Listener in *'::ffff:0.0.0.0:10329'*
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    Connect to '::ffff:127.0.0.1:10329'
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 7f 00 00 01 00 00 00 00 00 00 00 00 |................|
    Creating listen socket
    *### SYSCALL ERROR: bind(): 125, Address already in use*
    Wait and verify that the TIME_WAIT socket has disappeared
    $ sleep 120
    $ netstat -an | grep 10329
    Now run the same program with normal ipv6 listen addresses
    $ ./test_reuseaddr listen_address=*::0*:10329 connect_address=127.0.0.1:10329
    Listener in *':::10329'*
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    Connect to '::ffff:127.0.0.1:10329'
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 7f 00 00 01 00 00 00 00 00 00 00 00 |................|
    Creating listen socket
    Creating connecting socket
    Creating accepted socket
    netstat -an | grep 10329
    *.10329 *.* 0 0 49152 0 LISTEN
    127.0.0.1.35115 127.0.0.1.10329 49152 0 49152 0 ESTABLISHED
    127.0.0.1.10329 127.0.0.1.35115 49152 0 49152 0 ESTABLISHED
    *.10329 *.* 0 0 49152 0 LISTEN
    Closing connecting socket
    Closing accepted socket
    Closing listen socket
    netstat -an | grep 10329
    *127.0.0.1.10329 127.0.0.1.35115 49152 0 49152 0 TIME_WAIT*
    Immediately run it again the same way (no error this time)
    $ ./test_reuseaddr listen_address=*::0*:10329 connect_address=127.0.0.1:10329
    Listener in *':::10329'*
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    Connect to '::ffff:127.0.0.1:10329'
    1a 00 28 59 00 00 00 00 00 00 00 00 00 00 00 00 |..(Y............|
    00 00 ff ff 7f 00 00 01 00 00 00 00 00 00 00 00 |................|
    Creating listen socket
    Creating connecting socket
    Creating accepted socket
    netstat -an | grep 10329
    127.0.0.1.10329 127.0.0.1.35115 49152 0 49152 0 TIME_WAIT
    *.10329 *.* 0 0 49152 0 LISTEN
    127.0.0.1.35116 127.0.0.1.10329 49152 0 49152 0 ESTABLISHED
    127.0.0.1.10329 127.0.0.1.35116 49152 0 49152 0 ESTABLISHED
    *.10329 *.* 0 0 49152 0 LISTEN
    Closing connecting socket
    Closing accepted socket
    Closing listen socket
    netstat -an | grep 10329
    *127.0.0.1.10329 127.0.0.1.35115 49152 0 49152 0 TIME_WAIT*
    *127.0.0.1.10329 127.0.0.1.35116 49152 0 49152 0 TIME_WAIT*
    Run it againg many times with no error.

    sunlover1984 wrote:
    Sorry, to use such short forms in forums as i dont know much about this. i rarly use java forum. well, i removed the code that i gave u for server starting. but still it is giving me the same error. this time i put it in a java bean file.(Hint "u" is just another short form).
    Did you try the suggestion to put a log statement just before you start the server? Or put a breakpoint at that line and see how often it is reached.
    Because the only reason for this problem is that something is already listening at that port.
    And if there's really nothing listening before you start you application, then only your application itself can listen there already, so the logical conclusion for me would be that you're starting the Server twice.

  • SmbServer: could not create socket: Address already in use

    When I start SmbServerAgent,
    it fails again and again.
    In SmbServer.log there exists
    "SmbServer: could not create socket: Address already in use,"
    but SmbServer was already shutdown.
    How do resolve such issue? Thanks a lot.
    ergent

    Something else is already using that TCP port.
    BTW you can only re-use a TCP port number if you're binding to a different NIC IP address than the one bound by the previous binder to that TCP port. You're not, so you can't.

  • ERROR: transport error 202: bind failed: Address already in use

    Hey guys,
    I created 2 WL 10.3 Domains. I can start the admin server in domain but when I start the second admin server i get the following error:
    starting weblogic with Java version:
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../.
    ./../src/share/back/debugInit.c:690]
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_E
    RROR_TRANSPORT_INIT(197)
    Starting WLS with line:
    C:\bea\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket
    ,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx512m -XX:Com
    pileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -XX:MaxPermSize=160m
    -Xverify:none -Xverify:none -da:org.apache.xmlbeans... -ea -da:com.bea... -da:
    javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.
    sbconsole... -Dplatform.home=C:\bea\WLSERV~1.3 -Dwls.home=C:\bea\WLSERV~1.3\serv
    er -Dweblogic.home=C:\bea\WLSERV~1.3\server -Dweblogic.management.discover=tru
    e -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true
    -Dweblogic.ext.dirs=C:\bea\patch_wlw1030\profiles\default\sysext_manifest_classp
    ath;C:\bea\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\bea\patch
    cie670\profiles\default\sysextmanifest_classpath;C:\bea\patch_alsb1031\profile
    s\default\sysext_manifest_classpath -Dweblogic.Name=TestAdmin2 -Djava.security.p
    olicy=C:\bea\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../.
    ./../src/share/back/debugInit.c:690]
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_E
    RROR_TRANSPORT_INIT(197)
    Stopping PointBase server...
    I changed the port address of both admins but I dont' think that's the issue. Can someone tell me whats going on.
    Thanks

    Hi
    Iam getting the Same Error , Can you provide me some information on what changes did you made to the setDomainEnv.cmd file to make this work
    thanks in advance

  • LOG Q0I= NiIBindSocket: bind (98: Address already in use) [nixxi.cpp 3740] [Thr 140207008876384] *** ERROR = NiIBindSocket: SiBind failed for hdl 17/sock 7

    Dear All ,
    I am installing SAP Netveiwer 7.2 with oracle 11 g database in suse linux 11  but i am getting one error in Start instance phase , my message server is not getting connected , when i am trying to start manually  then my instance is connected but in this phase sap check message server is up or not , here i am attaching log of message server where i am getting error  , if any buddy knw Plz help me ....
    log file -
    trc file: "dev_ms.new", trc level: 1, release: "720"
    [Thr 140207008876384] Tue Jun 10 01:34:56 2014
    [Thr 140207008876384] ms/http_max_clients = 500 -> 500
    [Thr 140207008876384] MsSSetTrcLog: trc logging active, max size = 52428800 bytes
    systemid   390 (AMD/Intel x86_64 with Linux)
    relno      7200
    patchlevel 0
    patchno    413
    intno      20020600
    make       multithreaded, Unicode, 64 bit, optimized
    pid        7294
    [Thr 140207008876384] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 7294) [msxxserv_mt. 2280]
    [Thr 140207008876384] SigISetDefaultAction : default handling for signal SIGCHLD
    [Thr 140207008876384] ***LOG Q0I=> NiIBindSocket: bind (98: Address already in use) [nixxi.cpp 3740]
    [Thr 140207008876384] *** ERROR => NiIBindSocket: SiBind failed for hdl 17/sock 7
        (SI_EPORT_INUSE/98; I4; ST; 0.0.0.0:3601) [nixxi.cpp    3740]
    [Thr 140207008876384] *** ERROR => MsSCommInit: NiBufListen(sapmsINI) (rc=NIESERV_USED) [msxxserv_mt. 12225]
    [Thr 140207008876384] *** ERROR => MsSInit: MsSCommInit [msxxserv_mt. 2324]
    [Thr 140207008876384] *** ERROR => MsSInit failed, see dev_ms.new for details
    [msxxserv_mt. 7572]
    [Thr 140207008876384] ***LOG Q02=> MsSHalt, MSStop (Msg Server 7294) [msxxserv_mt. 7631]

    Hello Shyam,
    I don't see how updating the kernel would help in this case.
    If the port was already in use, any kernel version would give the same error.
    Hello Arpit,
    Since this is a Linux server, you can also run "lsof -nP|grep 3601" (may need to be logged on as "root"). This should give you more details than "netstat" (e.g., it will give you the PID of the process that's already using the port).
    The solution has already being pointed on this thread. You need to find out which process is using the port, and stop this other process.
    Cheers,
    Isaías

  • Transport error 202 bind failed address already in use

    how to rectify -- transport error 202 bind failed address already in use-- while running CA server
    i have created new production and pub server, first i runned production server after that while running CA server i got that error. if i run CA server independently its running

    It seems like a port conflict issue. You should check rmi and other ports in the configuration file for the component /atg/dynamo/Configuration in the localconfig of your production and publishing servers directories under <ATG>\home\servers. Also, your app server should be configured to run two separate instances for production and publishing server as per the http ports specified in /atg/dynamo/Configuration.

  • Problem with Embedded OC4J: Address already in use: JVM_Bind

    When I try to run a Servlet in JDeveloper 10g it works fine. But when I stop the Embedded OC4J and try to run the Servlet again, the following message appears in the log:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\oracle\ora10g\jdev\jdk\bin\javaw.exe -hotspot -classpath C:\oracle\ora10g\jdev\j2ee\home\oc4j.jar;C:\oracle\ora10g\jdev\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\oracle\ora10g\jdev\jdev\system9.0.5.0.0.1375\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    03/10/23 14:23:01 Error starting ORMI-Server. Unable to bind socket: Address already in use: JVM_Bind
    Process exited with exit code 7.
    What could be causing this problem?
    Thanks in advance!

    Modify the config/rmi.xml file to have the host attribute in the tag as follows:
    <rmi-server port="23791" host="server-ip-address">
    </rmi-server>
    After that, place the log4j-your-jdev-version.jar in appserverhome/j2ee/home/lib folder.
    Restart the server. The bind problem would disappear.
    Hope this solves your problem :-)
    Ramesh

  • OC4J bind socket address issue

    Hi i am using DB(9.2.0.6.0) and APPS(11.5.10.2).  Now i have cloned a new instance and it runs on port 8050. Now i want to install and configure OC4J with it. I have done the OC4J Installation Successfully. Here i used the OC4J Version 9.0.3.I have changed the http-web-site.xml port number to 8890 and rmi.xml port to 23793 as per the document i got.To create the starting script, file name called “.start_oc4j” I issued cd $OC4J_TOP/j2ee/home/ then
    java -jar oc4j.jar and
    it throws the error
    [applpdev@oraapps ~]$ cd $OC4J_TOP
    [applpdev@oraapps home]$ pwd
    /pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/
    [applpdev@oraapps oc4j]$ cd j2ee/home/
    [applpdev@oraapps home]$ java -jar oc4j.jar
    Error starting JMS-Server: Unable to bind socket: Address already in use
    Error starting ORMI-Server.  Unable to bind socket: Address already in use
    [applpdev@oraapps home]$

    Hi Hussein,
         Now i am facing a new issue. I am using oc4j 9.0.3 version. When i started the oc4j i am getting the following error.
    [applpdev@oraapps home]$ java -jar oc4j.jar
    Auto-deploying ejb (No previous deployment found)... Exception in thread "Orion Launcher" java.lang.NoClassDefFoundError: sun/jdbc/rowset/CachedRowSet
            at java.lang.Class.getDeclaredMethods0(Native Method)
            at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
            at java.lang.Class.privateGetPublicMethods(Class.java:2547)
            at java.lang.Class.getMethods(Class.java:1410)
            at
    com.evermind.server.ejb.compilation.ClassCompilation.compileMethods(ClassCompilation.java:84)
            at com.evermind.server.ejb.compilation.StatelessSessionBeanCompilation.compile(StatelessSessionBeanCompilation.java:40)
            at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:288)
            at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:551)
            at com.evermind.server.Application.postInit(Application.java:431)
            at com.evermind.server.Application.setConfig(Application.java:136)
            at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
            at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
            at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
            at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
            at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: sun.jdbc.rowset.CachedRowSet
            at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:456)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            ... 15 more
    So i uninstalled jdk1.6.0 and installed jdk1.4.2 and i started the OC4J. The default web page is displayed. Now i moved a .ear file to the directory APPL_TOP/pwr/11.5.0/oc4j/j2ee/home/applications added the entries in the server.xml,application.xml,http-web-site.xml and the directory is created for the respective .ear file. Under the path APPL_TOP/pwr/11.5.0/oc4j/j2ee/home/applications there are two default directories called dms0 and dms and they are accessible through the browser but my directory created by the .ear file is not accessible through the browser and it throws the error Can't find the directory. I checked the log and the content is
    12/5/13 6:06 PM iLogin: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:/pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/j2ee/home/application-deployments/iLogin/iLogin/persistence/_pages//_iLogin.java</H3><pre>error: Invalid class file format in /usr/java/j2sdk1.4.2_19/jre/lib/rt.jar(java/io/PrintWriter.class).  The major.minor version '48.0' is too recent for this tool to understand.
    /pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/j2ee/home/application-deployments/iLogin/iLogin/persistence/_pages/_iLogin.java:11: Class java.io.PrintWriter not found in import.
    import java.io.PrintWriter;
           ^
    error: Invalid class file format in /usr/java/j2sdk1.4.2_19/jre/lib/rt.jar(java/io/IOException.class).  The major.minor version '48.0' is too recent for this tool to understand.
    /pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/j2ee/home/application-deployments/iLogin/iLogin/persistence/_pages/_iLogin.java:12: Class java.io.IOException not found in import.
    import java.io.IOException;
           ^
    error: Invalid class file format in /usr/java/j2sdk1.4.2_19/jre/lib/rt.jar(java/sql/Connection.class).  The major.minor version '48.0' is too recent for this tool to understand.
    /pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/j2ee/home/application-deployments/iLogin/iLogin/persistence/_pages/_iLogin.java:14: Class java.sql.Connection not found in import.
    import java.sql.Connection;
    </pre>
    12/5/13 6:06 PM iLogin: Recursive error in error-page calling for /iMODError.jsp
    javax.servlet.ServletException: Recursive error in error-page calling for /iMODError.jsp (status 500)
      at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.sendError(EvermindHttpServletResponse.java:1204)
      at oracle.jsp.runtimev2.JspReportUtil.sendError(JspReportUtil.java:96)
      at oracle.jsp.runtimev2.JspReportUtil.reportException(JspReportUtil.java:125)
      at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:573)
      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:272)
      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
      at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
      at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
      at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.sendError(EvermindHttpServletResponse.java:1244)  and the same errors are repeated

  • Bind address already in use

    Hello all,
    I have a strange problem with TCP sokets.
    on a SunOS5.9 Sparc machine i am running a server progam
    which has the sequence,
    socket()
    bind()
    listen()
    connect().....
    do lots of processing with the clients (around 28 clients)
    close()
    sleep(30)
    server restart the above sequence
    when restarting i get a bind error:
    Address already in Use.
    i have verifeid that the socket is close, return value of close is 0.
    Is it possible that socket resources are not released by kernel?
    Is tuning the value of tcp_time_wait_interval to a low value will help to get the code running.
    Or is there any other tunbale parameter to be tuned out.
    Please help me to resolve this.
    Thanks.

    Hello all,
    I have a strange problem with TCP sokets.
    on a SunOS5.9 Sparc machine i am running a server progam
    which has the sequence,
    socket()
    bind()
    listen()
    connect().....
    do lots of processing with the clients (around 28 clients)
    close()
    sleep(30)
    server restart the above sequence
    when restarting i get a bind error:
    Address already in Use.
    i have verifeid that the socket is close, return value of close is 0.
    Is it possible that socket resources are not released by kernel?
    Is tuning the value of tcp_time_wait_interval to a low value will help to get the code running.
    Or is there any other tunbale parameter to be tuned out.
    Please help me to resolve this.
    Thanks.

  • Remote debugging issue: Address already in use

    First, I want to explain that to use remote debugging in oracle UCM server (IdcServerNT.exe), I add these lines at */server/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=-Xdebug
    JAVA_OPTIONS_debug_options=-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
    and since the JAVA_OPTIONS is shared between admin server (IdcAdminNT.exe) and non-admin server (IdcServerNT.exe), to prevent "Address already in use" error, I added same lines but with empty value into */server/admin/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=
    JAVA_OPTIONS_debug_options=
    or alternatively enable it but use different port for the "address=xxx".
    Now the issue is when I had run the non-admin UCM server with remote debugging enabled, then I tried to run the Component Wizard, I got "Address already in use" error:
    ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
    I found out that's possible because Component Wizard (ComponentWizard.exe) is using same setting file with non-admin server (IdcServerNT.exe): */server/bin/intradoc.cfg*. It's obvious that happened because of ComponentWizard.exe is in same location with IdcServerNT.exe, so I think other tools like Batch Loader and System Properties will be affected with same issue too.
    Because of this issue, everytime I want to open Component Wizard, I had to stop the non-admin server which is inconvenient.
    So, the question is there a way to define separately or disable the JAVA_OPTIONS_debug_enable & JAVA_OPTIONS_debug_options for Component Wizard?

    WillT wrote:
    My run method was being called somewhere else and I can't find out whereOkay, but changing from implementing Runnable to extending Thread won't change that one whit. You must've also changed something else.
    Extending Thread is the wrong approach, since you're not creating a special kind of Thread.

  • Socket Error: Address already in use

    Hello all,
    I'm trying to get the Trac bug tracking system installed on my system(running snow leopard). After quite a bit of tinkering I've managed to install Trac, but as of now, its a standalone entity. I am trying to get this linked to the apache webserver, but having no success. Has anybody done this before? I haven't used unix to this level before and so am struggling with that as well... any info on this is much appreciated.
    One of the instructions to test run Trac as a standalone component was using this command tracd --port 8000 /path/to/myfolder (according to installation instructions at http://trac.edgewall.org/wiki/TracInstall). I stopped it using Ctrl-Z and now when I try to run it again, get the following message and error:
    Traceback (most recent call last):
    File "/usr/local/bin/tracd", line 8, in <module>
    loadentrypoint('Trac==0.12', 'console_scripts', 'tracd')()
    File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 290, in main
    File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 257, in serve
    File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 109, in _init_
    File "build/bdist.macosx-10.6-universal/egg/trac/web/wsgi.py", line 231, in _init_
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 400, in _init_
    self.server_bind()
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTT PServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 411, in server_bind
    self.socket.bind(self.server_address)
    File "<string>", line 1, in bind
    socket.error: [Errno 48] Address already in use
    Can somebody please guide me to fix this?
    Message was edited by: capemacuser
    I realize that closing the terminal window "frees" the socket. But, is there something else that I can do while stopping the running application to ensure that the socket also gets "freed"?

    Control-Z does "stop" the process, but it doesn't kill it. Use Control-C to do that. Then, you may have to wait a couple of minutes for the OS to free up your socket until you can try again.

  • Address already in use: Cannot bind

    Hi all. I have a desktop app that sends commands and receives responses from a network appliance.
    All commands and responses work fine except one - trying to use RTPSocketPlayer on port 49154.
    The normal command and response UDP port is 49152. Streaming audio should come in on port 49154.
    I am closing and disconnecting the socket on 49152 after every command and response.
    But when I try to invoke the RTPSocketPlayer and bind port 49154 to my local IP, I get the
    Address already in use: Cannot bind error.
    Any suggestions? Thanks!
    waynew

    Ah OK, I get it. Change the InitSocket() method thus:
    sock = new DatagramSocket(null);
    sock.setReuseAddress(true);
    sock.bind(new InetSocketAddress(addr, sockPort));but also have a look at netstat -an to see who else is on that port and whether that's OK.

  • Cups - Unable to bind socket for address

    At first I must say, than CUPS is the bigger shit I have ever seen on Linux. I have configured many daemons like: Apache, Lighttpd, MySQL or dnsmasq. Everything always just work, but not CUPS. I have configured it for 15-20 times. I always need about 5-10 hours to run it, and I've never known why it started work - probably it is randomly like Windows
    Now, CUPS works fine on server, and I can print from laptop. But I've reinstalled Arch on PC. I've copied /etc/cups/ from laptop to PC, and now I can't start CUPS:
    /etc/rc.d/cups start
    :: Starting CUPS Daemon [BUSY]
    cupsd: Child exited on signal 15!
    /var/log/cups/error_log   
    I [11/Oct/2008:14:45:22 +0200] Listening to 208.69.34.132:631 (IPv4)
    I [11/Oct/2008:14:45:22 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
    I [11/Oct/2008:14:45:22 +0200] Using default TempDir of /var/spool/cups/tmp...
    I [11/Oct/2008:14:45:22 +0200] Configured for up to 100 clients.
    I [11/Oct/2008:14:45:22 +0200] Allowing up to 100 client connections per host.
    I [11/Oct/2008:14:45:22 +0200] Using policy "default" as the default!
    I [11/Oct/2008:14:45:22 +0200] Full reload is required.
    I [11/Oct/2008:14:45:22 +0200] Loaded MIME database from '/etc/cups': 35 types, 39 filters...
    D [11/Oct/2008:14:45:22 +0200] Loading printer Domowa...
    D [11/Oct/2008:14:45:22 +0200] Loading printer tmp...
    D [11/Oct/2008:14:45:22 +0200] Discarding unused printer-stopped event...
    E [11/Oct/2008:14:45:22 +0200] Filter "foomatic-rip" for printer "tmp" not available: No such file or directory
    D [11/Oct/2008:14:45:22 +0200] Scanning /var/spool/cups for jobs...
    I [11/Oct/2008:14:45:22 +0200] Full reload complete.
    I [11/Oct/2008:14:45:22 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    E [11/Oct/2008:14:45:22 +0200] Unable to bind socket for address 208.69.34.132:631 - Cannot assign requested address.
    X [11/Oct/2008:14:45:22 +0200] No Listen or Port lines were found to allow access via localhost!
    /etc/cups/cupsd.conf
    LogLevel debug
    SystemGroup sys root
    Listen localhost:631
    DefaultAuthType Basic
    I haven't any idea what it is: 208.69.34.132. It think it is in USA.
    socklist | grep 631 - clear
    Only deference between pc and laptop it's kernel - on pc I use 2.6.24

    I had the same problem.  I solved it doing 2 things.  (1) I replaced my /etc/cups/cups.conf with /etc/cups/cups.conf.default and (2) I added an acl option in the fstab.  Do a search on the forum for acl and you should see it.
    -rico

  • Ftp (GNU inetutils) 1.6 error : [ftp: bind: Address already in use]

    hi,
    recently I discovered that I cant connect to many ftp servers using the common command line ftp client from a 64bit archlinux box.
    I tried connecting from other PCs at the same network (iMac) and it works without problems, the error is general, shows with every ftp server I tried,
    the client connects and then freezes or returns an error (depending on the ftp server)
    ftp: bind: Address already in use
    I got no firewall or iptables rules, I installed ncftp with pacman and it works, so I assume it's a ftp (GNU) client error,
    thanks
    GL

    Hi,
    see
    http://forum.java.sun.com/thread.jsp?forum=136&thread=417946
    http://forum.java.sun.com/thread.jsp?forum=136&thread=430814
    -- markus.

Maybe you are looking for

  • File Adapter , Processing Sequence

    Hi All,    Can you please help me to understand these? 1. When i configure a Sender File Adapter with file pattern *.txt, Does it handle the files one after another? Or does it span multiple threads and processes multiple files in parallel? 2. If i s

  • What are the random swoosh noises...

    After I log in within the first 5 minutes I will hear that random swoosh noise. Like the noise you hear when you have new e-mail in your mac mail inbox. But the thing is I have not set up the Macmail thing so I don't know why I hear that random swoos

  • Help macbook pro battery 'Service Battery' ?

    I got an old mac book off newegg in September it was a macbook pro late 2006 model with the duo core processor. It originally had 2 gb of ram I wanted more so I ordered some now I have 4 gb of ram.Keep in mind I ordered the correct ram for the macboo

  • Wait events releated to  GLOBAL CASH

    HI Guys can anybody please provide me the metalink docs or online docs related to wait events related to global cash. Thanks Vijay

  • How to get pdf printer back?

    Just downloaded acrobat XI pro Windows, but pdf driver can't be found in the printer folder.  Do I need to re- download acrobat XI pro?