Error: Address already in use - on loading publisher portlets

Hi Guys,
We get the following error msg when we access our portal homepage (which contains a set of publisher portlets: Error details: OKHttpException - Exception occured while processing HTTP request.
Request processing stage was [1 - Trying to establish a socket connection to the remote host.]
Bytes sent: [0]; Bytes received: [0]
Error description: [Address already in use: no further information].
I'll appreciate if anyone has come across this before and can give a pointer as to what is causing it and how it can be fixed. e.g. What address is already in use? BTW, the error seem to occur very infrequently; as in occassionally, and when one refreshes the page, the content items are then rendered ok. Any clues will be greatly appreciated. Thnks.
Edited by obkalu at 11/16/2007 12:53 PM

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.

Similar Messages

  • 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: JVM_Bind error in DOS

    Hello,
    I am writing a multi threaded client server (Both client and server are multi threaded) program.where I have set of clients performing secure file transfer amongst them self. Here there is a Indexing server who is keeping record of all the files contained by clients. A client will make a request for a file to the Indexing Server which intern return the port no. and address of the client having that file. Now this client will connect to another client (Which now will act as server) to get the file and public key .
    Now I am connecting to server by using fix port number.
    Socket client = new Socket("127.0.0.1",2345)
    Also since the request for file from another client can come therefor I am creating a thread to start listning port on client side by,
    serverSocket serversocket = new serverSocket(client.getLocalport);
    //provided that connection to server with port 2345 already made.
    but when I am running this program through "DOS" it is giving me an error Address already in use: JVM_Bind.
    //checked through netstat and found that localport for the client is bound to 2345 (That is obvious)
    But when I am running this program in unix I am getting no error.

    ServerSocket.setReuseAddress(true) does not work on vista. Why? The following code is OK on XP, but throw the above exception on vista.
         @Test
         public void test() throws Throwable {
              Thread t = new Thread() {
                   public void run() {
                        ServerSocket ss;
                        try {
                             ss = new ServerSocket( 11111 );
                             System.out.println( "In Thread: " + ss );
                             System.out.println( "In Thread: " + ss.accept() );
                        } catch (IOException e) {
                             e.printStackTrace();
              t.start();
              Socket cs = new Socket( (String)null, 11111 );
              System.out.println( cs );
              ServerSocket s = new ServerSocket();
              s.setReuseAddress( true );
              s.bind( new InetSocketAddress( cs.getLocalPort() ) );
              System.out.println( s );
         }

  • 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.

  • 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.

  • Error establishing socket. Address already in use

    Running CFMX 6.1 on Win2k3, I just recently started getting
    these errors from connections to one of our SQLServer database
    servers (2000, enterprise):
    quote:
    Error Executing Database Query.[Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Address already in use: connect
    Any ideas what might cause this?

    ok. well, if you think that was useless, you might as well
    not read on... this isnt a coldfusion error. it only appears that
    way because you are using cfml. this is a most probably an SQL
    issue. i say most probably, because there are many reasons this
    could be happening. try doing things in these steps as they are in
    degrees of harshness.
    1. check the server event log, see if you have an entry like
    this
    'You are running a version of Microsoft SQL Server 2000 or
    Microsoft SQL Server 2000 Desktop Engine (also called MSDE) that
    has known security vulnerabilities when used in conjunction with
    the Microsoft Windows Server 2003 family. To reduce your computer's
    vulnerability to certain virus attacks, the TCP/IP and UDP network
    ports of Microsoft SQL Server 2000, MSDE, or both have been
    disabled. To enable these ports, you must install a patch, or the
    most recent service pack for Microsoft SQL Server 2000 or MSDE from
    [L=http://www.microsoft.com/sql/downloads/default.asp]http://www.microsoft.com/sql/downlo ads/default.asp[/L]
    [L=http://www.microsoft.com/sql/downloads/default.asp'</[/L]]http://www.microsoft.com/sql/downloads/default.asp'</[/L][/L]
    install sp4
    [L=http://www.microsoft.com/sql/downloads/2000/sp4.mspx]http://www.microsoft.com/sql/down loads/2000/sp4.mspx[/L]
    2. change your database server name to its IP (if that doesnt
    work, you might as well change it back)
    3. make sure you are authenticating with an SQL account.
    windows integrated authentication does not work well ... in your
    SQL enterprise manager, set it to mixed authentication in the
    security tab, select SQL server and windows authentication. the
    microsoft driver seems to not handle the windows authentication
    properly. i wouldnt use the the SA account, create another one just
    for this purpose.
    4. under the general tab in your enterprise manager click
    network configuration. enable TCP/IP which is not enabled by
    default
    5. Install SQL Server 2000 sp3 or sp4
    and here are some other useless articles you might want to
    read...
    Know bug in SQL Server preventing it from listening on port
    1433
    [L=http://support.microsoft.com/default.aspx?scid=kb;en-us;306865]http://support.microsoft .com/default.aspx?scid=kb;en-us;306865[/L]
    [L=http://support.microsoft.com/default.aspx?scid=kb;en-us;329329]http://support.microsoft .com/default.aspx?scid=kb;en-us;329329[/L]
    info on clustered SQL servers
    [L=http://support.microsoft.com/default.aspx?scid=kb;en-us;815431]http://support.microsoft .com/default.aspx?scid=kb;en-us;815431[/L]

  • 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.

  • 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

  • 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.

  • Error starting HTTP-Server: Address already in use: JVM_Bind

    Hello,
    I installed IAS 10.1.2.0.2. then I tried to start an application and get the following:
    D:\Oracle_Home_IAS\j2ee\home>java -jar oc4j.jar
    07/01/08 10:04:00 Error starting HTTP-Server: Address already in use: JVM_Bind
    07/01/08 10:04:01 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    07/01/08 10:04:01 !!! No valid java compiler found !!!
    07/01/08 10:04:01 javac.exe not found under D:\MDK\jre\1.4.2, please use a valid
    jdk or specify the location of your java compiler in server.xml using the <java
    -compiler .../> tag

    If I had to guess, you are starting HTTP Server on the same port as some other service.
    BTW, Oracle Express is not a supported platform for Mobile Server.

  • Error starting ORMI Server: address already in use

    - Linux RedHat 3 ES installed
    - Forms&Reports 904 installed
    EM:
    BI_Forms repeatly tries to start, but fials:
    "Error starting ORMI Server: address already in use"

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

  • 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.

  • 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

  • Per-VRF TACACS config gets "Address already in use" error

    I have created a per-VRF TACACS config on a couple of network devices. I can ping the ACS servers through the VRF. TACACS makes the attempt to contact the servers, but the following message shows up in the log when I debug TACACS:
    *Mar 11 08:57:38 starts: TAC+: Opening TCP/IP to x.x.x.x/49 timeout=5
    *Mar 11 08:57:38 starts: TAC+: TCP/IP open to x.x.x.x/49 failed -- Address already in use
    I can't find anything on CCO that references the "Address already in use" message.
    Has anyone run into this?

    Hmmm...no, the server group is still there. Did you see the other post which describes the bug ID? The link to the bug is:
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCsl45701
    Do you get the IP address is in use log message?

  • "BindException: Address already in use" error all the time!

    I made a simple program that streams lines of text across the network/internet and a simple client program to display that text. The problem is, regardless of what port I choose, I always get this exception on the server's side:
    C:\Users\Nathan\Desktop>java LyricalUploader
    Started Listening
    Bound
    Started Listening
    Starting.java.net.BindException: Address already in use: JVM_Bind
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
            at java.net.ServerSocket.bind(ServerSocket.java:319)
            at java.net.ServerSocket.<init>(ServerSocket.java:185)
            at java.net.ServerSocket.<init>(ServerSocket.java:97)
            at LyricalUploader.main(LyricalUploader.java:11)What bothers me is it creates the ServerSocket just fine (that's what the output saying "Bound" means) and if I replace the new LyricalThread(ss.accept()).start(); line in the code below with new LyricalThread(ss.accept()).run();, it works fine, It just can't handle more than one client. I have tried many many ports and they all have the same result. What am I doing wrong?
    Here is the code:
    import java.net.*;
    import java.io.*;
    import javax.swing.JFileChooser;
    public class LyricalUploader{
    public static void main(String args[]){
      ServerSocket ss = null;
      int c=0;
      try{
        while(true){
          System.out.println("Started Listening");
          ss = new ServerSocket(49625);
          System.out.println("Bound");
          new LyricalThread(ss.accept()).start();
      catch(Exception e){
        e.printStackTrace();
        System.exit(1);
    import java.net.*;
    import java.io.*;
    public class LyricalThread extends Thread{
      Socket s = null;
      public LyricalThread(Socket so){
        s=so;
      public void run(){
        try{
          System.out.print("Starting.");
          PrintWriter out = new PrintWriter(s.getOutputStream());
          BufferedReader fin =new BufferedReader(new FileReader("Lyrics.txt"));
          System.out.print(".");
          String line = fin.readLine();
          System.out.println(".Done!");
          while(true){
            while(line!=null){
              out.println(line);
              //System.out.println(line);
              line=fin.readLine();
              Thread.sleep(1600);
            fin.close();
            System.out.println("End of Lyrics.txt file.");
            fin =new BufferedReader(new FileReader("Lyrics.txt"));
        catch(Exception e){
          e.printStackTrace();
          return;
      public static void main(String arg[]){
        new LyricalThread(null).start();
    }And the Client code:
    import java.net.*;
    import java.io.*;
    import javax.swing.JFileChooser;
    public class LyricalReader{
      public static void main(String args[]) throws Exception{
        Socket s = null;
        BufferedReader sin = null;
        FileOutputStream out = null;
        try{
          System.out.println("Started");
          System.out.print("Connecting...");
          s = new Socket("2.9.19.94",49625);
          System.out.println("Done!");
          System.out.print("Finding song...");
          sin = new BufferedReader(new InputStreamReader(s.getInputStream()));
          String line = sin.readLine();
          System.out.println("Done!\nStarted reading:\n\n\n\n\n\n");
          while(true){
            System.out.println(line);
            line = sin.readLine();
        }catch(Exception e){
          e.printStackTrace();
          sin.close();
          s.close();
          out.close();
        System.exit(0);
    }

    Hi,
    your Server must create only one ServerSocket, not multiples! So write
      try{
        ss = new ServerSocket(49625);
        System.out.println("Bound");
        while(true){
          System.out.println("Started Listening");
          new LyricalThread(ss.accept()).start();
      catch(Exception e){
        e.printStackTrace();
        System.exit(1);
      }and take the creation of the ServerSocket outside the while-loop.
    Martin

Maybe you are looking for

  • PSE 13 album syncronization to iPad/iPhone

    Has aynone an idea how to syncronize my well structured PSE13 Albums to iPad and iPhone? In earlier versions of PSE you can easily syncronize all albums, but from version 13 the function is not available anymore. You can only, as before, syncronize d

  • CR with Universe error: Unhandled exception in WebI server call

    Hi, I encounter an error when creating CR report with did any one ever got Unhandled exception in WebI server call when dragging objects into filter querys of query panel? This worked fine few days ago but failed now. I have check the BO servers are

  • Cannot use DDNS service in china!

    I am use WRT300N V1(Firmware Version: v1.03.6) wireless router in china, and use China Telecom ADSL Broadband service, I want to use DDNS service but never connet to DynDNS.org, please help me to solve the problem,many thanks. Joe

  • [REQUEST] GOP / UEFI BIOS R9 280X 3G GAMING

      S/N 602-V277-28SB13112067244-7DG THX 

  • Photo Booth issue

    Video on Photo Booth did not record. Any hope of recovering?