Consistently Getting TNS-12542: TNS:address already in use error.

Hi
We are facing problem with listener service as It crashes with the error TNS-12542.
Once we restart the server it gets started again and work for some 3-4 days.
Than it crashes with the same error.Oracle version is 10g.
Any idea what could be problem?
Thanks in advance.

Its windows2003 server
Version
for 32-bit Windows: Version 10.2.0.1.0 - Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Windows NT Named Pipes NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production,,
Listener.ora
# listener.ora Network Configuration File: H:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = IN1011)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME =TESTDB1)
(ORACLE_HOME = \\IN1011\h$\oracle\product\10.2.0\db_1\NETWORK\ADMIN)
(SID_NAME = TESTDB1)
(SID_DESC =
(GLOBAL_DBNAME = TESTDB2)
(ORACLE_HOME = \\IN1011\h$\oracle\product\10.2.0\db_1\NETWORK\ADMIN)
(SID_NAME = TESTDB2)
(SID_DESC =
(PROGRAM = TESTDB3)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = \\IN1011\h$\oracle\product\10.2.0\db_1)
(SID_DESC =
(PROGRAM = TESTDB4)
(SID_NAME = selmnewdsn_cc)
(ORACLE_HOME = \\IN1011\h$\oracle\product\10.2.0\db_1)
(SID_DESC =
(GLOBAL_DBNAME = TESTDB5)
(ORACLE_HOME = \\IN1011\h$\oracle\product\10.2.0\db_1\NETWORK\ADMIN)
(SID_NAME = TESTDB5)
Thanks

Similar Messages

  • 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

  • TNS Address already in use error

    Using Oracle9i, through the ODBC driver on a Windows 2000 machine, we receive the above error (ORA-12542) whenever our application attempts to establish more than 22 concurrent connections. Is there a performance limit or something that's tunable in Oracle9i?

    Try creating a registry value under
    HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE called USE_SHARED_SOCKET and set it equal to TRUE.

  • I am trying to configure iMessage and I get the infamous "email address already in use".

    I use this emaill address as my Apple ID.  I am able to use iMessage for my AOL email address but I hardly ever use that email and want to use my GMail acct.  I am ready to throw this iPod in the garbage and start using a Droid device.  I certainly won't be buying an iPad with issues like this.  I love my MacBook Pro and I am trying to embrace the Apple World.  Just the whole Apple ID password security is giving me fits.  Who the heck wants to have to have such unique passwords?

    Try:
    iOS: FaceTime is 'Unable to verify email because it is in use'
    https://discussions.apple.com/message/18264361#18264361
    https://discussions.apple.com/message/18502891#18502891
    https://discussions.apple.com/message/16513824#16513824
    https://discussions.apple.com/message/16503340#16503340

  • 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

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

  • Sun would like your help with the "System Name Already In Use"  error

    A couple of users have reported getting an erroneous "System Name Already in Use" error when re-registering a system after a fresh Solaris re-install. We'd like your help in tracking down this problem.
    The scenario is this:
    * Install Solaris 10 and register with updatemanager,
    * Wipe out the installation and re-install Solaris.
    * re-register with updatemanager.
    The system erroneously reports that the system name is already in use. It is supposed to detect a duplicate registration of the same system.
    We have not been able to reproduce this error in our lab.
    If this has happened to you, would you let us know at [email protected]?
    Here are the things that we would like to ask of you:
    * If you run "updatemanager -debug" if will create a log file /tmp/basicreg<timestamp>.log.
    * Details on the exact hardware you have (make/model/configuration).
    * Details on the steps you took to get to the bad state. REALLY detailed!
    Thanks!
    Based on what we know now, we believe you can work around the issue by either:
    * Changing the host name and re-registering.
    * Creating a different user account and registering the host to that account.
    Some previously-posted workarounds are known NOT to work:
    * Wait 24 hours and try again.
    * Do some "ccr" incantations and try again.

    Hi,
    Can you drop me an email as i am a sun employee and i will be able to check if the swup frontline team have received any support cases on this issue and then we can work with you directly to resolve the issue.
    Scott Wallace

  • TNS-12542: TNS:address already in use

    Hi
    I am getting the following error:
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    Linux Error: 98: Address already in use
    Can someone please tell me how to fix it. This is 9i on Linux and it is just a single insatance?
    Thanks in Advance.
    Regards

    Thanks for your time and reply Yas...
    Actually, I am trying to stop it and it hangs. Nothing else except help works on the listener prompt but the listener process is running.
    I killed the listener process using kill -9 and now I am not able to start it. I tried different ports also. Can someone please help me solving this? Start to stop commands just hangs.
    Regards
    Message was edited by:
    Singh

  • Need help on ORA-12542: TNS:address already in use

    Hi Toady morning , i faced this error. my database and listener is already up and running but application user posted this error to me. i do not see any error logs in oracle. could anybody pls help me as soon as possible. for workaround i have restarted the database. As it is in production needed urgent help. Below is the error;
    Thu Aug 30 08:37:47 2012 733000 [DM_SESSION_E_CANT_MAKE_TEMP_CONNECTION]error: "Could not establish an internal, temporary database connection (database_name = , docbase_owner = I102, connection_string = ECM53); database system error was: ORA-12542: TNS:address already in use
    Current Session ID: 0100213a8155ce3e
    Last SQL statement executed by DB was:
    No Session Record.TID(10176) failure during processing of request: NewSessionByAddr_string.
    Thanks in advance

    890482 wrote:
    Hi Toady morning , i faced this error. my database and listener is already up and running but application user posted this error to me. i do not see any error logs in oracle. could anybody pls help me as soon as possible. for workaround i have restarted the database. As it is in production needed urgent help. Below is the error;
    Thu Aug 30 08:37:47 2012 733000 [DM_SESSION_E_CANT_MAKE_TEMP_CONNECTION]error: "Could not establish an internal, temporary database connection (database_name = , docbase_owner = I102, connection_string = ECM53); database system error was: ORA-12542: TNS:address already in use
    Current Session ID: 0100213a8155ce3e
    Last SQL statement executed by DB was:
    No Session Record.TID(10176) failure during processing of request: NewSessionByAddr_string.
    Thanks in advancebcm@bcm-laptop:~$ oerr ora 12542
    12542, 00000, "TNS:address already in use"
    // *Cause: Specified listener address is already being used.
    // *Action: Start your listener with a unique address.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • TNS-12542 : TNS: Adress already in use

    We have 2 SAP System on one SUN Solaris Server. The Listener of the first system EC1 uses the port 1521 , the listener of the second system SO1 user the port 1522 - according to configurations files tnsnames.ora and listener.ora. The problem is that listener of SO1 can't be started and I receive the follow Error-Message Listener ( lsnrctl start) :
    "System parameter file is /oracle/SO1/network/admin/listener.ora
    Error listening on : <Adress=<Protokol+tcp><Port=1521>>
    TNS-12542 : TNS: Adress already in use
    TNS-12560 :TNS: protocol adapter error
    TNS-00512: Adress already in use
    Solaris Error : 125: Adress already in use
    From this error message is clearly that Listener of SO1 uses the port of EC1 1521. Where else could be listener ports configurated ? Why the Listener of second system use the port 1521.
    On this server runs only one Listener on port 1521 for EC1.
    Thank You!
    Erika
    SAP Basis Consultant

    Hi,
    this is my listener.ora for SO1:
    Filename......: listener.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/640-2/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER1 =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = SO1.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = SO1)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = sbsfierp)
              (PORT = 1522)
        (ADDRESS =
          (COMMUNITY = SAP.WORLD)
          (PROTOCOL = TCP)
          (HOST = sbsfierp)
          (PORT = 1528)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SDU = 32768)
          (SID_NAME = SO1)
          (ORACLE_HOME = /oracle/SO1/920_64)
        (SID_DESC =
          (SDU = 32768)
          (SID_NAME = SO1)
          (ORACLE_HOME = /oracle/SO1/920_64)
    SID_LIST_LISTENER1 =
      (SID_LIST =
        (SID_DESC =
          (SDU = 32768)
          (SID_NAME = SO1)
          (ORACLE_HOME = /oracle/SO1/920_64)
    ADMIN_RESTRICTIONS_LISTENER1 = on
    STARTUP_WAIT_TIME_LISTENER1 = 0
    CONNECT_TIMEOUT_LISTENER1 = 10
    TRACE_LEVEL_LISTENER1 = OFF
    And this is my tnsnames.ora for SO1:
    Filename......: tnsnames.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/640-2/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
    SO1.WORLD =
      (DESCRIPTION =
        (SDU = 32768)
        (ADDRESS_LIST =
          (ADDRESS =
            (COMMUNITY = SAP.WORLD)
            (PROTOCOL = TCP)
            (HOST = sbsfierp)
            (PORT = 1528)
        (CONNECT_DATA =
          (SID = SO1)
          (GLOBAL_NAME = SO1.WORLD)
    Thank You!
    Erika

  • Web Service Client, BindException, Address already in use, saaj.SOAPExcepti

    Hello,
    Am caught up with an error and i can't get past it, need some help here.
    My application is a batch processing web service client, reads some input rows, sends web service requets, processes the responses and logs it.
    The application runs well in normal mode, but under load(more thread count), I get this wierd error and I can't make it go away.
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
    Caused by: java.net.BindException: Address already in use: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    I have properly closed the connections after each web service calls, but it still says Address in use. Please refer below for the complete stack trace and a piece of the code. Am using SAAJ and JWSDP and am not using AXIS api. I have searched the web but couldn't find any solutions.
    This is not an error that server is not closing connections properly as I was able to test with SOAPUI and LoadRunner with even higher threads and it ran without problems. SOAPUI and LoadRunner scripts were executed from the same client machine as my application uses. Please help.
    For each inputrow
    SOAPConnection connection = null;
    try
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    connection = soapConnFactory.createConnection();
    SOAPMessage request = getRequest(inputRow);
    SOAPMessage response = connection.call(request, "http://<<server>>:<<port no>>/Domain/Services/Mgmt");
    finally
    if (connection != null)
    connection.close();                         
    }catch(SOAPException se){
    System.out.println("Error while closing connection. " + se.getMessage());
    connection = null;
    } // End of for loop
    Stack Trace:
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptio
    nImpl: Message send failed
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
    PConnection.java:121)
    at ClientImpl.getResponse(ClientImpl.java:440)
    at input.InputSampler$MyCallable.call(Sampler.java:63)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
    PConnection.java:325)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
    ost.run(HttpSOAPConnection.java:150)
    ... 12 more
    Caused by: java.net.BindException: Address already in use: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
    Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
    ce)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
    ource)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
    PConnection.java:282)
    Is there something like connection pooling for web services, is that the answer to this issue, if yes, please let me know where i should start.
    Thanks
    Dev

    Move server socket creation out of while loop. You don't need to create new server socket every time.

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

  • 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 );
         }

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

Maybe you are looking for

  • Macbook Pro 13' (Late 2011) STILL really slow since updating to Mavericks

    So I've seen a lot of discussions about the same issue and some have threads have been solved, yet others remain unknown. I have the same problem as others that stated they have experience something similar to my case. Just fyi though, that my comput

  • PSE 11 problem

    Heres my problem I have photoshop elements installed on my old laptop. I have moved the file to a usb stick but  i am unable to gett it to install on my new one, it runs windows 8. whilst all the files have been transfered  i cannot get the programm

  • Does my macbook late 2008 support gigabit internet

    does my macbook late 2008 support gagabit internet

  • Best Practices for many Remote Objects?

    Large Object Model doing JDBC over RMI Please read the following and provide suggestions for a recommended approach or literature that covers this area well? N-Tiered Architecture JSP/Servlet (MVC) - Database Access Layer - Database Applets - JSp/Ser

  • SO Price Print into PO

    Hi All, My client want to print the Sales order Price to the Purchase order.PO is being created with ref to PR ,which is being generated thru the sales Order.(as in Third party order) Material type reqd is HAWA (Trading goods). Pls tell me the possib